Skip to content

Commit

Permalink
feat: add organizer selection
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Aug 13, 2024
1 parent ccc5af2 commit 41bcaff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ export default {
return organizerDisplayName(this.calendarObjectInstance.organizer)
},
organizerSelection() {
var organizers = []
var owner = this.principalsStore.getPrincipalByUrl(this.calendarInstance.owner)
var principal = this.principalsStore.getCurrentUserPrincipal
let organizers = []
let owner = this.principalsStore.getPrincipalByUrl(this.calendarInstance.owner)
let principal = this.principalsStore.getCurrentUserPrincipal
if (owner) {
organizers.push({
id: owner.id,
Expand All @@ -254,16 +254,16 @@ export default {
return organizers
},
organizerSelected() {
var organizer = null
let organizer = null
if (this.calendarObjectInstance.organizer !== null) {
let user = this.calendarObjectInstance.organizer
const user = this.calendarObjectInstance.organizer
organizer = {
label: user.commonName,
address: removeMailtoPrefix(user.uri)
}
}
else if (this.principalsStore.getCurrentUserPrincipal !== null) {
let user = this.principalsStore.getCurrentUserPrincipal
const user = this.principalsStore.getCurrentUserPrincipal
organizer = {
label: user.displayname,
address: user.emailAddress
Expand Down

0 comments on commit 41bcaff

Please sign in to comment.