From 10232c5866bdb79dd2d6cbc91d2b8f3827af3ad4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 7 Sep 2018 00:52:13 +0900 Subject: [PATCH] Fix bug & some refactor --- .../app/common/views/widgets/broadcast.vue | 16 ++++++++-------- src/client/app/desktop/views/pages/welcome.vue | 2 +- .../app/mobile/views/components/ui.nav.vue | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/client/app/common/views/widgets/broadcast.vue b/src/client/app/common/views/widgets/broadcast.vue index e4e77263e..c0f97e97c 100644 --- a/src/client/app/common/views/widgets/broadcast.vue +++ b/src/client/app/common/views/widgets/broadcast.vue @@ -1,6 +1,6 @@ @@ -36,18 +36,18 @@ export default define({ return { i: 0, fetching: true, - broadcasts: [] + announcements: [] }; }, mounted() { (this as any).os.getMeta().then(meta => { - this.broadcasts = meta.broadcasts; + this.announcements = meta.broadcasts; this.fetching = false; }); }, methods: { next() { - if (this.i == this.broadcasts.length - 1) { + if (this.i == this.announcements.length - 1) { this.i = 0; } else { this.i++; diff --git a/src/client/app/desktop/views/pages/welcome.vue b/src/client/app/desktop/views/pages/welcome.vue index 0138fde27..d55029fb5 100644 --- a/src/client/app/desktop/views/pages/welcome.vue +++ b/src/client/app/desktop/views/pages/welcome.vue @@ -33,7 +33,7 @@
%fa:broadcast-tower% %i18n:@announcements%
-
+

diff --git a/src/client/app/mobile/views/components/ui.nav.vue b/src/client/app/mobile/views/components/ui.nav.vue index 83a8eb439..c3ae05fef 100644 --- a/src/client/app/mobile/views/components/ui.nav.vue +++ b/src/client/app/mobile/views/components/ui.nav.vue @@ -34,7 +34,7 @@
  • %i18n:@darkmode%

  • -
    +