summaryrefslogtreecommitdiff
path: root/src/client/app/admin/views
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-10 17:30:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-10 17:30:28 +0900
commit8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169 (patch)
tree464f6e908de12e86eec16ec918adfe3be387b166 /src/client/app/admin/views
parentテキストのリスト内で変数埋め込みできるように (diff)
downloadsharkey-8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169.tar.gz
sharkey-8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169.tar.bz2
sharkey-8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169.zip
インスタンス運営者がピン留めユーザーを設定できるように
Related #4892
Diffstat (limited to 'src/client/app/admin/views')
-rw-r--r--src/client/app/admin/views/instance.vue13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue
index cca4e5f669..d81edc8fe6 100644
--- a/src/client/app/admin/views/instance.vue
+++ b/src/client/app/admin/views/instance.vue
@@ -83,6 +83,14 @@
</ui-card>
<ui-card>
+ <template #title>{{ $t('pinned-users') }}</template>
+ <section>
+ <ui-textarea v-model="pinnedUsers"></ui-textarea>
+ <ui-button @click="updateMeta">{{ $t('save') }}</ui-button>
+ </section>
+ </ui-card>
+
+ <ui-card>
<template #title>{{ $t('invite') }}</template>
<section>
<ui-button @click="invite">{{ $t('invite') }}</ui-button>
@@ -190,6 +198,7 @@ export default Vue.extend({
enableServiceWorker: false,
swPublicKey: null,
swPrivateKey: null,
+ pinnedUsers: [],
faHeadset, faShieldAlt, faGhost, faUserPlus, farEnvelope, faBolt
};
},
@@ -239,6 +248,7 @@ export default Vue.extend({
this.enableServiceWorker = meta.enableServiceWorker;
this.swPublicKey = meta.swPublickey;
this.swPrivateKey = meta.swPrivateKey;
+ this.pinnedUsers = meta.pinnedUsers.join('\n');
});
},
@@ -297,7 +307,8 @@ export default Vue.extend({
smtpPass: this.smtpAuth ? this.smtpPass : '',
enableServiceWorker: this.enableServiceWorker,
swPublicKey: this.swPublicKey,
- swPrivateKey: this.swPrivateKey
+ swPrivateKey: this.swPrivateKey,
+ pinnedUsers: this.pinnedUsers.split('\n')
}).then(() => {
this.$root.dialog({
type: 'success',