From 001bb7bbcd688510223b4f355057cf73d264a7c4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Nov 2018 12:28:53 +0900 Subject: インスタンスの対象言語の設定を実装 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/admin/views/instance.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client/app/admin/views/instance.vue') diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue index 9d0204cfb8..815cea6313 100644 --- a/src/client/app/admin/views/instance.vue +++ b/src/client/app/admin/views/instance.vue @@ -6,6 +6,7 @@ %i18n:@instance-name% %i18n:@instance-description% %i18n:@banner-url% + %i18n:@languages%%i18n:@languages-desc%
%i18n:@maintainer-config%
@@ -31,7 +32,7 @@
%i18n:@proxy-account-config%
%i18n:@proxy-account-info% - @%i18n:@proxy-account-username%%i18n:@proxy-account-username-desc% + @%i18n:@proxy-account-username%%i18n:@proxy-account-username-desc% %i18n:@proxy-account-warn%
@@ -68,6 +69,7 @@ export default Vue.extend({ bannerUrl: null, name: null, description: null, + languages: null, cacheRemoteFiles: false, localDriveCapacityMb: null, remoteDriveCapacityMb: null, @@ -87,6 +89,7 @@ export default Vue.extend({ this.bannerUrl = meta.bannerUrl; this.name = meta.name; this.description = meta.description; + this.languages = meta.langs.join(' '); this.cacheRemoteFiles = meta.cacheRemoteFiles; this.localDriveCapacityMb = meta.driveCapacityPerLocalUserMb; this.remoteDriveCapacityMb = meta.driveCapacityPerRemoteUserMb; @@ -119,6 +122,7 @@ export default Vue.extend({ bannerUrl: this.bannerUrl, name: this.name, description: this.description, + langs: this.languages.split(' '), cacheRemoteFiles: this.cacheRemoteFiles, localDriveCapacityMb: parseInt(this.localDriveCapacityMb, 10), remoteDriveCapacityMb: parseInt(this.remoteDriveCapacityMb, 10), -- cgit v1.2.3-freya