summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-30 21:31:51 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-30 21:31:51 +0900
commit616408f36e10a6e6409208ed680c30ed0e2b8b34 (patch)
tree096516c42bee558bf759bb660169947c99063da8 /src/client
parent返信先プレビューなどではURLプレビューを表示しないよ... (diff)
downloadsharkey-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.ts2
-rw-r--r--src/client/app/mobile/views/pages/home.vue18
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
});