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>2020-04-10 09:14:56 +0300
committerdartcafe <github@dartcafe.de>2020-04-10 09:14:56 +0300
commitcde42e5fb875e6e2395750ab7614e99729370971 (patch)
treed15ab544f387d4a518bb6fd2eb82774e806ddb84 /src/js/views/PollList.vue
parentf52c2ee88868e3d43e9d7383c6e4d3ba02adeb73 (diff)
set window title #318
Diffstat (limited to 'src/js/views/PollList.vue')
-rw-r--r--src/js/views/PollList.vue14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/js/views/PollList.vue b/src/js/views/PollList.vue
index 93ed21e3..f7c239a0 100644
--- a/src/js/views/PollList.vue
+++ b/src/js/views/PollList.vue
@@ -119,6 +119,10 @@ export default {
}
},
+ windowTitle() {
+ return t('polls', 'Polls') + ' - ' + this.title
+ },
+
sortedList() {
if (this.reverse) {
return sortBy(this.filteredPolls(this.$route.params.type), this.sort).reverse()
@@ -129,6 +133,16 @@ export default {
},
+ watch: {
+ $route() {
+ window.document.title = t('polls', 'Polls') + ' - ' + this.title
+ }
+ },
+
+ created() {
+ window.document.title = t('polls', 'Polls') + ' - ' + this.title
+ },
+
methods: {
setSort(payload) {
if (this.sort === payload.sort) {