summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-04 22:53:56 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-04 22:53:56 +0900
commit37f862947bb04fd962d2a1b43e486750360c37e3 (patch)
tree7dc11d0f3f3b841ac53ddfe82a2e4c8b03a017a2 /src
parentrefactor (diff)
downloadmisskey-37f862947bb04fd962d2a1b43e486750360c37e3.tar.gz
misskey-37f862947bb04fd962d2a1b43e486750360c37e3.tar.bz2
misskey-37f862947bb04fd962d2a1b43e486750360c37e3.zip
:v:
Diffstat (limited to 'src')
-rw-r--r--src/client/app.vue26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/client/app.vue b/src/client/app.vue
index 88c924aadf..7a4412964a 100644
--- a/src/client/app.vue
+++ b/src/client/app.vue
@@ -177,12 +177,26 @@ export default Vue.extend({
},
widgets(): any[] {
- const widgets = this.$store.state.deviceUser.widgets;
- return {
- left: widgets.filter(x => x.place === 'left'),
- right: widgets.filter(x => x.place == null || x.place === 'right'),
- mobile: widgets.filter(x => x.place === 'mobile'),
- };
+ if (this.$store.getters.isSignedIn) {
+ const widgets = this.$store.state.deviceUser.widgets;
+ return {
+ left: widgets.filter(x => x.place === 'left'),
+ right: widgets.filter(x => x.place == null || x.place === 'right'),
+ mobile: widgets.filter(x => x.place === 'mobile'),
+ };
+ } else {
+ return {
+ left: [],
+ right: [{
+ name: 'calendar',
+ id: 'a', place: 'right', data: {}
+ }, {
+ name: 'trends',
+ id: 'c', place: 'right', data: {}
+ }],
+ mobile: [],
+ };
+ }
},
menu(): string[] {