diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-07 12:28:53 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-07 12:28:53 +0900 |
| commit | 001bb7bbcd688510223b4f355057cf73d264a7c4 (patch) | |
| tree | f7e3cfd02d2f1f340f0fdf5c1f5bb2c65a06c63e /src/client | |
| parent | :art: (diff) | |
| download | sharkey-001bb7bbcd688510223b4f355057cf73d264a7c4.tar.gz sharkey-001bb7bbcd688510223b4f355057cf73d264a7c4.tar.bz2 sharkey-001bb7bbcd688510223b4f355057cf73d264a7c4.zip | |
インスタンスの対象言語の設定を実装
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/admin/views/instance.vue | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ <ui-input v-model="name">%i18n:@instance-name%</ui-input> <ui-textarea v-model="description">%i18n:@instance-description%</ui-textarea> <ui-input v-model="bannerUrl"><i slot="icon"><fa icon="link"/></i>%i18n:@banner-url%</ui-input> + <ui-input v-model="languages"><i slot="icon"><fa icon="language"/></i>%i18n:@languages%<span slot="desc">%i18n:@languages-desc%</span></ui-input> </section> <section class="fit-bottom"> <header><fa icon="headset"/> %i18n:@maintainer-config%</header> @@ -31,7 +32,7 @@ <section> <header><fa icon="ghost"/> %i18n:@proxy-account-config%</header> <ui-info>%i18n:@proxy-account-info%</ui-info> - <ui-input v-model="proxyAccount"><i slot="prefix">@</i>%i18n:@proxy-account-username%<span slot="desc">%i18n:@proxy-account-username-desc%</span></ui-input> + <ui-input v-model="proxyAccount"><span slot="prefix">@</span>%i18n:@proxy-account-username%<span slot="desc">%i18n:@proxy-account-username-desc%</span></ui-input> <ui-info warn>%i18n:@proxy-account-warn%</ui-info> </section> <section> @@ -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), |