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 12, 2024
1 parent 265bcfd commit b4c1bca
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 = []

Check failure on line 237 in src/components/Editor/Invitees/InviteesList.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'organizers' is never reassigned. Use 'const' instead

Check warning on line 237 in src/components/Editor/Invitees/InviteesList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Invitees/InviteesList.vue#L237

Added line #L237 was not covered by tests
let owner = this.principalsStore.getPrincipalByUrl(this.calendarInstance.owner)

Check failure on line 238 in src/components/Editor/Invitees/InviteesList.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'owner' is never reassigned. Use 'const' instead
let principal = this.principalsStore.getCurrentUserPrincipal

Check failure on line 239 in src/components/Editor/Invitees/InviteesList.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'principal' is never reassigned. Use 'const' instead
if (owner) {
organizers.push({
id: owner.id,

Check warning on line 242 in src/components/Editor/Invitees/InviteesList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Invitees/InviteesList.vue#L242

Added line #L242 was not covered by tests
Expand All @@ -254,16 +254,16 @@ export default {
return organizers
},
organizerSelected() {

Check warning on line 256 in src/components/Editor/Invitees/InviteesList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Invitees/InviteesList.vue#L256

Added line #L256 was not covered by tests
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)
}
}

Check failure on line 264 in src/components/Editor/Invitees/InviteesList.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Closing curly brace does not appear on the same line as the subsequent block
else if (this.principalsStore.getCurrentUserPrincipal !== null) {
let user = this.principalsStore.getCurrentUserPrincipal
const user = this.principalsStore.getCurrentUserPrincipal
organizer = {
label: user.displayname,
address: user.emailAddress

Check warning on line 269 in src/components/Editor/Invitees/InviteesList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Invitees/InviteesList.vue#L269

Added line #L269 was not covered by tests
Expand Down

0 comments on commit b4c1bca

Please sign in to comment.