Skip to content

Commit

Permalink
remove warning causes
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <[email protected]>
  • Loading branch information
dartcafe committed Oct 1, 2024
1 parent dab782b commit 39eb3da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Cards/VoteInfoCards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</script>

<template>
<TransitionGroup class="info-section">
<TransitionGroup>
<CardUnpublishedPoll v-if="showUnpublishedPollCard" :key="0" />
<CardAddProposals v-if="showAddProposalsCard" :key="1" />
<CardLimitedVotes v-if="showLimitCard" :key="2" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/User/UserItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
default: '',
},
type: {
type: Object as PropType<UserType | VirtualUserItemType>,
type: String as PropType<UserType | VirtualUserItemType>,
default: UserType.None,
validator(value: UserType | VirtualUserItemType) {
return [
Expand Down
14 changes: 7 additions & 7 deletions src/components/User/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
<SettingsIcon :size="20" decorative />
</template>

<NcActionButton v-if="sessionStore.share.type === 'external'"
<NcActionButton v-if="sessionStore.share?.type === 'external'"
:name="t('polls', 'Copy your personal link to clipboard')"
:aria-label="t('polls', 'Copy your personal link to clipboard')"
@click="copyLink()">
Expand All @@ -218,9 +218,9 @@
</template>
</NcActionButton>
<NcActionSeparator v-if="sessionStore.share.type === 'external'" />
<NcActionSeparator v-if="sessionStore.share?.type === 'external'" />
<NcActionInput v-if="sessionStore.share.type === 'external'"
<NcActionInput v-if="sessionStore.share?.type === 'external'"
v-bind="displayNameInputProps"
v-model="shareStore.displayName"
@update:value-value="validateDisplayName"
Expand All @@ -231,7 +231,7 @@
{{ displayNameInputProps.label }}
</NcActionInput>
<NcActionInput v-if="sessionStore.share.type === 'external'"
<NcActionInput v-if="sessionStore.share?.type === 'external'"
v-bind="eMailInputProps"
v-model="shareStore.emailAddress"
@update:model-value="validateEMail"
Expand All @@ -242,7 +242,7 @@
{{ eMailInputProps.label }}
</NcActionInput>
<NcActionButton v-if="sessionStore.share.type === 'external'"
<NcActionButton v-if="sessionStore.share?.type === 'external'"
:name="t('polls', 'Get your personal link per mail')"
:aria-label="t('polls', 'Get your personal link per mail')"
:disabled="!shareStore.user.emailAddress"
Expand All @@ -259,7 +259,7 @@
{{ t('polls', 'Subscribe to notifications') }}
</NcActionCheckbox>
<NcActionButton v-if="sessionStore.share.type === 'external' && shareStore.user.emailAddress"
<NcActionButton v-if="sessionStore.share?.type === 'external' && shareStore.user.emailAddress"
:name="t('polls', 'Remove Email Address')"
:aria-label="t('polls', 'Remove Email Address')"
@click="deleteEmailAddress">
Expand All @@ -286,7 +286,7 @@
</template>
</NcActionButton>
<NcActionButton v-if="sessionStore.share.type === 'external' && hasCookie"
<NcActionButton v-if="sessionStore.share?.type === 'external' && hasCookie"
:name="t('polls', 'Logout as {name} (delete cookie)', { name: sessionStore.currentUser.displayName })"
:aria-label="t('polls', 'Logout as {name} (delete cookie)', { name: sessionStore.currentUser.displayName })"
@click="logout()">
Expand Down

0 comments on commit 39eb3da

Please sign in to comment.