Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-02-28 15:18:27 +0300
committerdartcafe <github@dartcafe.de>2021-03-02 16:45:46 +0300
commit982c6c169e8e5935f9f664ba76c21f87ba330482 (patch)
tree89ba53e213fdc8c816d99460e360f231e46b5dcd /src/js/views
parent496bd621b8ccd62e9d0beee6ac7f6b6affea9832 (diff)
converting mobile and desktop view to list-view and table-view
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Vote.vue18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index c71e0d2f..1c1dd971 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -165,7 +165,7 @@ export default {
if (window.innerWidth > 480) {
return this.settings.user.defaultViewTextPoll
} else {
- return 'mobile'
+ return 'list-view'
}
}
},
@@ -177,7 +177,7 @@ export default {
if (window.innerWidth > 480) {
return this.settings.user.defaultViewDatePoll
} else {
- return 'mobile'
+ return 'list-view'
}
}
},
@@ -188,7 +188,7 @@ export default {
} else if (this.poll.type === 'datePoll') {
return this.viewDatePoll
} else {
- return 'desktop'
+ return 'table-view'
}
},
@@ -227,10 +227,10 @@ export default {
},
viewCaption() {
- if (this.viewMode === 'desktop') {
- return t('polls', 'Switch to mobile view')
+ if (this.viewMode === 'table-view') {
+ return t('polls', 'Switch to list view')
} else {
- return t('polls', 'Switch to desktop view')
+ return t('polls', 'Switch to table view')
}
},
orderCaption() {
@@ -266,10 +266,10 @@ export default {
},
toggleViewIcon() {
- if (this.viewMode === 'desktop') {
- return 'icon-phone'
+ if (this.viewMode === 'table-view') {
+ return 'icon-list-view'
} else {
- return 'icon-desktop'
+ return 'icon-table-view'
}
},