From 14d12c21f2ee7f7162b3583e94c13b8a6e7f1e43 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 7 Jun 2018 05:14:37 +0900 Subject: [PATCH] nanka iroiro --- .../app/desktop/views/components/settings.vue | 10 ++++++++++ src/client/app/desktop/views/components/ui.vue | 14 +++++++++++++- .../app/desktop/views/pages/deck/deck.column.vue | 1 + src/client/app/desktop/views/pages/deck/deck.vue | 8 +++++++- src/models/user.ts | 5 +++++ src/server/api/endpoints/i/update.ts | 15 +++++++++++++++ 6 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 1bfff8cc83..e0d578c33b 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -40,6 +40,7 @@
+ @@ -293,6 +294,15 @@ export default Vue.extend({ this.$router.push('/i/customize-home'); this.$emit('done'); }, + updateWallpaper() { + (this as any).apis.chooseDriveFile({ + multiple: false + }).then(file => { + (this as any).api('i/update', { + wallpaperId: file.id + }); + }); + }, onChangeFetchOnScroll(v) { this.$store.dispatch('settings/set', { key: 'fetchOnScroll', diff --git a/src/client/app/desktop/views/components/ui.vue b/src/client/app/desktop/views/components/ui.vue index 34769b52bb..351deafded 100644 --- a/src/client/app/desktop/views/components/ui.vue +++ b/src/client/app/desktop/views/components/ui.vue @@ -1,5 +1,5 @@