Skip to content

Commit

Permalink
Merge pull request #3051 from nextcloud/fix/options-error
Browse files Browse the repository at this point in the history
remove console error
  • Loading branch information
dartcafe authored Sep 5, 2023
2 parents 88d83f8 + c1844bd commit 47e824d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/js/components/Options/OptionsDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
</NcActionButton>
</NcActions>
<NcButton v-if="closed"
v-tooltip="confirmedButtonCaption"
:aria-label="confirmedButtonCaption"
v-tooltip="option.confirmed ? t('polls', 'Unconfirm option') : t('polls', 'Confirm option')"
:aria-label="option.confirmed ? t('polls', 'Unconfirm option') : t('polls', 'Confirm option')"
type="tertiary"
@click="confirmOption(option)">
<template #icon>
Expand Down Expand Up @@ -136,9 +136,6 @@ export default {
closed: 'poll/isClosed',
countOptions: 'options/count',
}),
confirmedButtonCaption() {
return this.option.confirmed ? t('polls', 'Unconfirm option') : t('polls', 'Confirm option')
},
},

methods: {
Expand Down

0 comments on commit 47e824d

Please sign in to comment.