diff options
author | dartcafe <github@dartcafe.de> | 2021-10-15 01:09:04 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-10-15 01:09:04 +0300 |
commit | eb64a8c6c2b1ee373c81d3751e73ffbfce890496 (patch) | |
tree | 22e3adcacd8b2b62dbcb2f2ea9b93425e4166cb6 /src/js/components/Options | |
parent | 4b84b06e109182afae3980e3cb4961f0c2238cc2 (diff) |
vue/no-unused-properties
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Options')
-rw-r--r-- | src/js/components/Options/OptionProposals.vue | 10 | ||||
-rw-r--r-- | src/js/components/Options/OptionsDate.vue | 11 | ||||
-rw-r--r-- | src/js/components/Options/OptionsDateShift.vue | 16 | ||||
-rw-r--r-- | src/js/components/Options/OptionsText.vue | 15 |
4 files changed, 0 insertions, 52 deletions
diff --git a/src/js/components/Options/OptionProposals.vue b/src/js/components/Options/OptionProposals.vue index 25482d37..34adf6c1 100644 --- a/src/js/components/Options/OptionProposals.vue +++ b/src/js/components/Options/OptionProposals.vue @@ -55,16 +55,6 @@ export default { proposalsOpen: 'poll/proposalsOpen', proposalsExpireRelative: 'poll/proposalsExpireRelative', }), - - proposalsStatus() { - if (this.proposalsExpirySet && !this.proposalsExpired) { - return t('polls', 'Proposal period ends {timeRelative}.', { timeRelative: this.proposalsExpireRelative }) - } - if (this.proposalsExpirySet && this.proposalsExpired) { - return t('polls', 'Proposal period ended {timeRelative}.', { timeRelative: this.proposalsExpireRelative }) - } - return t('polls', 'You are asked to propose more poll options.') - }, }, } diff --git a/src/js/components/Options/OptionsDate.vue b/src/js/components/Options/OptionsDate.vue index 42f81a6c..c34adb30 100644 --- a/src/js/components/Options/OptionsDate.vue +++ b/src/js/components/Options/OptionsDate.vue @@ -69,7 +69,6 @@ <script> import { mapGetters, mapState } from 'vuex' -import moment from '@nextcloud/moment' import { Actions, ActionButton, EmptyContent, Modal } from '@nextcloud/vue' import ActionDelete from '../Actions/ActionDelete' import OptionCloneDate from './OptionCloneDate' @@ -102,12 +101,6 @@ export default { return { cloneModal: false, optionToClone: {}, - sequence: { - baseOption: {}, - unit: { name: t('polls', 'Week'), value: 'week' }, - step: 1, - amount: 1, - }, } }, @@ -123,10 +116,6 @@ export default { countOptions: 'options/count', pollTypeIcon: 'poll/typeIcon', }), - - dateBaseOptionString() { - return moment.unix(this.sequence.baseOption.timestamp).format('LLLL') - }, }, methods: { diff --git a/src/js/components/Options/OptionsDateShift.vue b/src/js/components/Options/OptionsDateShift.vue index 863ce612..6bf6ccf9 100644 --- a/src/js/components/Options/OptionsDateShift.vue +++ b/src/js/components/Options/OptionsDateShift.vue @@ -44,7 +44,6 @@ import { mapState, mapGetters } from 'vuex' import InputDiv from '../Base/InputDiv' -import moment from '@nextcloud/moment' import { Multiselect } from '@nextcloud/vue' import { dateUnits } from '../../mixins/dateMixins' @@ -60,12 +59,6 @@ export default { data() { return { - sequence: { - baseOption: {}, - unit: { name: t('polls', 'Week'), value: 'week' }, - step: 1, - amount: 1, - }, shift: { step: 1, unit: { name: t('polls', 'Week'), value: 'week' }, @@ -81,15 +74,6 @@ export default { ...mapGetters({ proposalsExist: 'options/proposalsExist', }), - - firstDOW() { - // vue2-datepicker needs 7 for sunday - if (moment.localeData()._week.dow === 0) { - return 7 - } - return moment.localeData()._week.dow - - }, }, methods: { diff --git a/src/js/components/Options/OptionsText.vue b/src/js/components/Options/OptionsText.vue index 8802b5af..e287f9f5 100644 --- a/src/js/components/Options/OptionsText.vue +++ b/src/js/components/Options/OptionsText.vue @@ -88,12 +88,6 @@ export default { removeOption, ], - data() { - return { - newPollText: '', - } - }, - computed: { ...mapState({ options: (state) => state.options.list, @@ -117,15 +111,6 @@ export default { }, }, - - methods: { - async addOption() { - if (this.newPollText) { - await this.$store.dispatch('options/add', { pollOptionText: this.newPollText }) - this.newPollText = '' - } - }, - }, } </script> |