mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 16:35:56 +02:00
✌️
This commit is contained in:
@@ -34,19 +34,20 @@ export default function<T extends object>(data: {
|
||||
}
|
||||
|
||||
this.$watch('props', newProps => {
|
||||
const w = (this as any).os.i.client_settings.mobile_home.find(w => w.id == this.id);
|
||||
if (this.isMobile) {
|
||||
(this as any).api('i/update_mobile_home', {
|
||||
id: this.id,
|
||||
data: newProps
|
||||
}).then(() => {
|
||||
(this as any).os.i.client_settings.mobile_home.find(w => w.id == this.id).data = newProps;
|
||||
w.data = newProps;
|
||||
});
|
||||
} else {
|
||||
(this as any).api('i/update_home', {
|
||||
id: this.id,
|
||||
data: newProps
|
||||
}).then(() => {
|
||||
(this as any).os.i.client_settings.home.find(w => w.id == this.id).data = newProps;
|
||||
w.data = newProps;
|
||||
});
|
||||
}
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user