summaryrefslogtreecommitdiff
path: root/src/client/app/admin
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-05 11:09:05 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-05 11:09:05 +0900
commitd7a3b710281f19746aaccaf23c07feb700503f39 (patch)
tree102229af5c4906d5071603f5e3311e04c2559e9c /src/client/app/admin
parentRemove Travis (diff)
downloadsharkey-d7a3b710281f19746aaccaf23c07feb700503f39.tar.gz
sharkey-d7a3b710281f19746aaccaf23c07feb700503f39.tar.bz2
sharkey-d7a3b710281f19746aaccaf23c07feb700503f39.zip
投稿の最大文字数情報を設定ファイルではなくDBに保存するように
Diffstat (limited to 'src/client/app/admin')
-rw-r--r--src/client/app/admin/views/instance.vue6
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 85ef0a60c4..703d0f622b 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">%i18n:@banner-url%</ui-input>
+ <ui-input v-model="maxNoteTextLength">%i18n:@max-note-text-length%</ui-input>
<ui-button @click="updateMeta">%i18n:@save%</ui-button>
</section>
</ui-card>
@@ -39,6 +40,7 @@ export default Vue.extend({
bannerUrl: null,
name: null,
description: null,
+ maxNoteTextLength: null,
inviteCode: null,
};
},
@@ -48,6 +50,7 @@ export default Vue.extend({
this.bannerUrl = meta.bannerUrl;
this.name = meta.name;
this.description = meta.description;
+ this.maxNoteTextLength = meta.maxNoteTextLength;
});
},
@@ -69,7 +72,8 @@ export default Vue.extend({
disableLocalTimeline: this.disableLocalTimeline,
bannerUrl: this.bannerUrl,
name: this.name,
- description: this.description
+ description: this.description,
+ maxNoteTextLength: parseInt(this.maxNoteTextLength, 10)
}).then(() => {
this.$swal({
type: 'success',