summaryrefslogtreecommitdiff
path: root/src/client/app/admin/views/instance.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-06 07:14:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-06 07:14:43 +0900
commit8f714b5b126226346af850337566f0f70bd02d4f (patch)
treef647ad5b28e5a4e74a7f7501c09597a1f8f11a81 /src/client/app/admin/views/instance.vue
parentClean up (diff)
downloadmisskey-8f714b5b126226346af850337566f0f70bd02d4f.tar.gz
misskey-8f714b5b126226346af850337566f0f70bd02d4f.tar.bz2
misskey-8f714b5b126226346af850337566f0f70bd02d4f.zip
ドライブ容量の設定をDBに保存するようにしたりリファクタリングしたり
Diffstat (limited to 'src/client/app/admin/views/instance.vue')
-rw-r--r--src/client/app/admin/views/instance.vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue
index 4e93779670..65be1b4046 100644
--- a/src/client/app/admin/views/instance.vue
+++ b/src/client/app/admin/views/instance.vue
@@ -6,6 +6,8 @@
<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">%i18n:@banner-url%</ui-input>
+ <ui-input v-model="localDriveCapacityMb">%i18n:@local-drive-capacity-mb%<span slot="text">%i18n:@mb%</span></ui-input>
+ <ui-input v-model="remoteDriveCapacityMb">%i18n:@remote-drive-capacity-mb%<span slot="text">%i18n:@mb%</span></ui-input>
<ui-input v-model="maxNoteTextLength">%i18n:@max-note-text-length%</ui-input>
<ui-button @click="updateMeta">%i18n:@save%</ui-button>
</section>
@@ -40,6 +42,8 @@ export default Vue.extend({
bannerUrl: null,
name: null,
description: null,
+ localDriveCapacityMb: null,
+ remoteDriveCapacityMb: null,
maxNoteTextLength: null,
inviteCode: null,
};
@@ -50,6 +54,8 @@ export default Vue.extend({
this.bannerUrl = meta.bannerUrl;
this.name = meta.name;
this.description = meta.description;
+ this.localDriveCapacityMb = meta.driveCapacityPerLocalUserMb;
+ this.remoteDriveCapacityMb = meta.driveCapacityPerRemoteUserMb;
this.maxNoteTextLength = meta.maxNoteTextLength;
});
},
@@ -73,6 +79,8 @@ export default Vue.extend({
bannerUrl: this.bannerUrl,
name: this.name,
description: this.description,
+ localDriveCapacityMb: parseInt(this.localDriveCapacityMb, 10),
+ remoteDriveCapacityMb: parseInt(this.remoteDriveCapacityMb, 10),
maxNoteTextLength: parseInt(this.maxNoteTextLength, 10)
}).then(() => {
this.$swal({