diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-30 21:31:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-30 21:31:51 +0900 |
| commit | 616408f36e10a6e6409208ed680c30ed0e2b8b34 (patch) | |
| tree | 096516c42bee558bf759bb660169947c99063da8 /src/client | |
| parent | 返信先プレビューなどではURLプレビューを表示しないよ... (diff) | |
| download | sharkey-616408f36e10a6e6409208ed680c30ed0e2b8b34.tar.gz sharkey-616408f36e10a6e6409208ed680c30ed0e2b8b34.tar.bz2 sharkey-616408f36e10a6e6409208ed680c30ed0e2b8b34.zip | |
oops
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/define-widget.ts | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/home.vue | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/client/app/common/define-widget.ts b/src/client/app/common/define-widget.ts index 27db59b5ee..9f8dcfc7ea 100644 --- a/src/client/app/common/define-widget.ts +++ b/src/client/app/common/define-widget.ts @@ -56,7 +56,7 @@ export default function<T extends object>(data: { id: this.id, data: newProps }).then(() => { - (this as any).os.i.account.clientSettings.mobile_home.find(w => w.id == this.id).data = newProps; + (this as any).os.i.account.clientSettings.mobileHome.find(w => w.id == this.id).data = newProps; }); } else { (this as any).api('i/update_home', { diff --git a/src/client/app/mobile/views/pages/home.vue b/src/client/app/mobile/views/pages/home.vue index be9101aa7f..f1f65f90c3 100644 --- a/src/client/app/mobile/views/pages/home.vue +++ b/src/client/app/mobile/views/pages/home.vue @@ -82,8 +82,8 @@ export default Vue.extend({ }; }, created() { - if ((this as any).os.i.account.clientSettings.mobile_home == null) { - Vue.set((this as any).os.i.account.clientSettings, 'mobile_home', [{ + if ((this as any).os.i.account.clientSettings.mobileHome == null) { + Vue.set((this as any).os.i.account.clientSettings, 'mobileHome', [{ name: 'calendar', id: 'a', data: {} }, { @@ -105,14 +105,14 @@ export default Vue.extend({ name: 'version', id: 'g', data: {} }]); - this.widgets = (this as any).os.i.account.clientSettings.mobile_home; + this.widgets = (this as any).os.i.account.clientSettings.mobileHome; this.saveHome(); } else { - this.widgets = (this as any).os.i.account.clientSettings.mobile_home; + this.widgets = (this as any).os.i.account.clientSettings.mobileHome; } this.$watch('os.i.account.clientSettings', i => { - this.widgets = (this as any).os.i.account.clientSettings.mobile_home; + this.widgets = (this as any).os.i.account.clientSettings.mobileHome; }, { deep: true }); @@ -157,15 +157,15 @@ export default Vue.extend({ }, onHomeUpdated(data) { if (data.home) { - (this as any).os.i.account.clientSettings.mobile_home = data.home; + (this as any).os.i.account.clientSettings.mobileHome = data.home; this.widgets = data.home; } else { - const w = (this as any).os.i.account.clientSettings.mobile_home.find(w => w.id == data.id); + const w = (this as any).os.i.account.clientSettings.mobileHome.find(w => w.id == data.id); if (w != null) { w.data = data.data; this.$refs[w.id][0].preventSave = true; this.$refs[w.id][0].props = w.data; - this.widgets = (this as any).os.i.account.clientSettings.mobile_home; + this.widgets = (this as any).os.i.account.clientSettings.mobileHome; } } }, @@ -194,7 +194,7 @@ export default Vue.extend({ this.saveHome(); }, saveHome() { - (this as any).os.i.account.clientSettings.mobile_home = this.widgets; + (this as any).os.i.account.clientSettings.mobileHome = this.widgets; (this as any).api('i/update_mobile_home', { home: this.widgets }); |