From 2a5c19cd0133451b8279843024e2316053ca55c7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Nov 2018 07:52:13 +0900 Subject: リモートのファイルをキャッシュするかどうかの設定をDBに保存するように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/admin/views/instance.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/app/admin') 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 @@
%i18n:@drive-config%
+ %i18n:@cache-remote-files%%i18n:@cache-remote-files-desc% %i18n:@local-drive-capacity-mb%%i18n:@mb%MB %i18n:@remote-drive-capacity-mb%%i18n:@mb%MB
@@ -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) -- cgit v1.2.3-freya