Skip to content

Commit cec33f4

Browse files
author
philippe lhardy
committed
apply github review
address remarks from nextcloud#4199 Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
1 parent 738fea1 commit cec33f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/Configuration/ConfigRankOptions.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import PlusIcon from 'vue-material-design-icons/Plus.vue'
3232
import CloseIcon from 'vue-material-design-icons/Close.vue'
3333
import { showError } from '@nextcloud/dialogs'
3434
35-
const store = usePollStore()
35+
const pollStore = usePollStore()
3636
3737
// Parse chosenRank string from store into array
3838
const internalChosenRank = ref([])
@@ -41,7 +41,7 @@ const newOption = ref('')
4141
4242
onMounted(() => {
4343
try {
44-
const initialValue = JSON.parse(store.configuration.chosenRank || '[]');
44+
const initialValue = JSON.parse(pollStore.configuration.chosenRank || '[]');
4545
if ( Array.isArray(initialValue) ) {
4646
internalChosenRank.value = initialValue;
4747
} else {
@@ -59,8 +59,8 @@ onMounted(() => {
5959
// update in store + API
6060
async function updateChosenRank(newValue) {
6161
try {
62-
await store.setChosenRank(newValue)
63-
await store.write()
62+
await pollStore.setChosenRank(newValue)
63+
await pollStore.write()
6464
} catch (err) {
6565
console.error('Update failed:', err)
6666
showError(t('polls', 'Failed to update options'))

src/stores/poll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const pollTypes: Record<PollType, PollTypesType> = {
4949

5050
export const votingVariants: Record<VotingVariant, VotingVariantsType> = {
5151
simple: {
52-
name: t('polls', 'Simple variant'),
52+
name: t('polls', 'Opted variant'),
5353
},
5454
generic: {
5555
name: t('polls', 'Generic variant'),

0 commit comments

Comments
 (0)