summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-10-10 17:47:57 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-10-10 17:47:57 +0900
commit46424f63f21b264745a07fdd3d6481a83f99ab87 (patch)
tree20780b2cd322e9d7dd0fe251cd6aef4fcd422e56 /src
parentimprove ui (diff)
downloadsharkey-46424f63f21b264745a07fdd3d6481a83f99ab87.tar.gz
sharkey-46424f63f21b264745a07fdd3d6481a83f99ab87.tar.bz2
sharkey-46424f63f21b264745a07fdd3d6481a83f99ab87.zip
fix(client): ピン留めユーザーの設定項目がない問題を修正
Diffstat (limited to 'src')
-rw-r--r--src/client/pages/instance/settings.vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/pages/instance/settings.vue b/src/client/pages/instance/settings.vue
index c9a948da7d..7bd363e5f3 100644
--- a/src/client/pages/instance/settings.vue
+++ b/src/client/pages/instance/settings.vue
@@ -38,6 +38,11 @@
<span>{{ $ts.maintainerEmail }}</span>
</FormInput>
+ <FormTextarea v-model="pinnedUsers">
+ <span>{{ $ts.pinnedUsers }}</span>
+ <template #desc>{{ $ts.pinnedUsersDescription }}</template>
+ </FormTextarea>
+
<FormInput v-model="maxNoteTextLength" type="number">
<template #prefix><i class="fas fa-pencil-alt"></i></template>
<span>{{ $ts.maxNoteTextLength }}</span>
@@ -98,6 +103,7 @@ export default defineComponent({
maxNoteTextLength: 0,
enableLocalTimeline: false,
enableGlobalTimeline: false,
+ pinnedUsers: '',
}
},
@@ -119,6 +125,7 @@ export default defineComponent({
this.maxNoteTextLength = meta.maxNoteTextLength;
this.enableLocalTimeline = !meta.disableLocalTimeline;
this.enableGlobalTimeline = !meta.disableGlobalTimeline;
+ this.pinnedUsers = meta.pinnedUsers.join('\n');
},
save() {
@@ -134,6 +141,7 @@ export default defineComponent({
maxNoteTextLength: this.maxNoteTextLength,
disableLocalTimeline: !this.enableLocalTimeline,
disableGlobalTimeline: !this.enableGlobalTimeline,
+ pinnedUsers: this.pinnedUsers.split('\n'),
}).then(() => {
fetchInstance();
});