mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 03:40:25 +01:00
Add: コントロールパネルにAllowedEmailDomainsを追加
This commit is contained in:
parent
8229e27128
commit
866cd43207
1 changed files with 22 additions and 0 deletions
|
@ -88,6 +88,19 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
|
<MkFolder>
|
||||||
|
<template #label>Allowed Email Domains</template>
|
||||||
|
<template v-if="allowedEmailDomainsForm.modified.value" #footer>
|
||||||
|
<MkFormFooter :form="allowedEmailDomainsForm"/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<div class="_gaps_m">
|
||||||
|
<MkTextarea v-model="allowedEmailDomainsForm.state.allowedEmailDomains">
|
||||||
|
<template #label>Allowed Email Domains List</template>
|
||||||
|
</MkTextarea>
|
||||||
|
</div>
|
||||||
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder>
|
<MkFolder>
|
||||||
<template #label>Banned Email Domains</template>
|
<template #label>Banned Email Domains</template>
|
||||||
<template v-if="bannedEmailDomainsForm.modified.value" #footer>
|
<template v-if="bannedEmailDomainsForm.modified.value" #footer>
|
||||||
|
@ -193,6 +206,15 @@ const emailValidationForm = useForm({
|
||||||
fetchInstance(true);
|
fetchInstance(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const allowedEmailDomainsForm = useForm({
|
||||||
|
allowedEmailDomains: meta.allowedEmailDomains?.join('\n') || '',
|
||||||
|
}, async (state) => {
|
||||||
|
await os.apiWithDialog('admin/update-meta', {
|
||||||
|
allowedEmailDomains: state.allowedEmailDomains.split('\n'),
|
||||||
|
});
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
|
||||||
const bannedEmailDomainsForm = useForm({
|
const bannedEmailDomainsForm = useForm({
|
||||||
bannedEmailDomains: meta.bannedEmailDomains?.join('\n') || '',
|
bannedEmailDomains: meta.bannedEmailDomains?.join('\n') || '',
|
||||||
}, async (state) => {
|
}, async (state) => {
|
||||||
|
|
Loading…
Reference in a new issue