diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:30:31 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:30:31 +0900 |
| commit | 85959a3b9bef93e9b26e6b58c49145d6f67ea571 (patch) | |
| tree | 783e7bde3e66444913884e97fcf8c0d81599974d /src/client/app/common/views/components | |
| parent | Clean up (diff) | |
| download | misskey-85959a3b9bef93e9b26e6b58c49145d6f67ea571.tar.gz misskey-85959a3b9bef93e9b26e6b58c49145d6f67ea571.tar.bz2 misskey-85959a3b9bef93e9b26e6b58c49145d6f67ea571.zip | |
Fix #4721 Fix #4722
Diffstat (limited to 'src/client/app/common/views/components')
| -rw-r--r-- | src/client/app/common/views/components/settings/settings.vue | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/app/common/views/components/settings/settings.vue b/src/client/app/common/views/components/settings/settings.vue index 001b692551..be2d7fce85 100644 --- a/src/client/app/common/views/components/settings/settings.vue +++ b/src/client/app/common/views/components/settings/settings.vue @@ -525,15 +525,11 @@ export default Vue.extend({ this.$chooseDriveFile({ multiple: false }).then(file => { - this.$root.api('i/update', { - wallpaperId: file.id - }); + this.$store.dispatch('settings/set', { key: 'wallpaper', value: file.url }); }); }, deleteWallpaper() { - this.$root.api('i/update', { - wallpaperId: null - }); + this.$store.dispatch('settings/set', { key: 'wallpaper', value: null }); }, checkForUpdate() { this.checkingForUpdate = true; |