summaryrefslogtreecommitdiff
path: root/src/client/app/admin/views/instance.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-06 07:52:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-06 07:52:13 +0900
commit2a5c19cd0133451b8279843024e2316053ca55c7 (patch)
treeed565caa2d17ad8a8072ec3396b99a00895343c0 /src/client/app/admin/views/instance.vue
parent:art: (diff)
downloadsharkey-2a5c19cd0133451b8279843024e2316053ca55c7.tar.gz
sharkey-2a5c19cd0133451b8279843024e2316053ca55c7.tar.bz2
sharkey-2a5c19cd0133451b8279843024e2316053ca55c7.zip
リモートのファイルをキャッシュするかどうかの設定をDBに保存するように
Diffstat (limited to 'src/client/app/admin/views/instance.vue')
-rw-r--r--src/client/app/admin/views/instance.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue
index 9a7f8d556b..4d7965e703 100644
--- a/src/client/app/admin/views/instance.vue
+++ b/src/client/app/admin/views/instance.vue
@@ -12,6 +12,7 @@
</section>
<section class="fit-bottom">
<header><fa icon="cloud"/> %i18n:@drive-config%</header>
+ <ui-switch v-model="cacheRemoteFiles">%i18n:@cache-remote-files%<span slot="desc">%i18n:@cache-remote-files-desc%</span></ui-switch>
<ui-input v-model="localDriveCapacityMb">%i18n:@local-drive-capacity-mb%<span slot="text">%i18n:@mb%</span><span slot="suffix">MB</span></ui-input>
<ui-input v-model="remoteDriveCapacityMb">%i18n:@remote-drive-capacity-mb%<span slot="text">%i18n:@mb%</span><span slot="suffix">MB</span></ui-input>
</section>
@@ -49,6 +50,7 @@ export default Vue.extend({
bannerUrl: null,
name: null,
description: null,
+ cacheRemoteFiles: false,
localDriveCapacityMb: null,
remoteDriveCapacityMb: null,
maxNoteTextLength: null,
@@ -61,6 +63,7 @@ export default Vue.extend({
this.bannerUrl = meta.bannerUrl;
this.name = meta.name;
this.description = meta.description;
+ this.cacheRemoteFiles = meta.cacheRemoteFiles;
this.localDriveCapacityMb = meta.driveCapacityPerLocalUserMb;
this.remoteDriveCapacityMb = meta.driveCapacityPerRemoteUserMb;
this.maxNoteTextLength = meta.maxNoteTextLength;
@@ -86,6 +89,7 @@ export default Vue.extend({
bannerUrl: this.bannerUrl,
name: this.name,
description: this.description,
+ cacheRemoteFiles: this.cacheRemoteFiles,
localDriveCapacityMb: parseInt(this.localDriveCapacityMb, 10),
remoteDriveCapacityMb: parseInt(this.remoteDriveCapacityMb, 10),
maxNoteTextLength: parseInt(this.maxNoteTextLength, 10)