mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 07:25:12 +00:00
upd: remove type username to confirm dialog
resolves # 759
This commit is contained in:
parent
fea7889e0c
commit
ed064b2193
1 changed files with 3 additions and 15 deletions
|
@ -69,22 +69,10 @@ async function deleteAccount() {
|
||||||
});
|
});
|
||||||
if (confirm.canceled) return;
|
if (confirm.canceled) return;
|
||||||
|
|
||||||
const typed = await os.inputText({
|
|
||||||
text: i18n.t('typeToConfirm', { x: props.user.username }),
|
|
||||||
});
|
|
||||||
if (typed.canceled) return;
|
|
||||||
|
|
||||||
if (typed.result === props.user.username) {
|
|
||||||
await os.apiWithDialog('admin/decline-user', {
|
await os.apiWithDialog('admin/decline-user', {
|
||||||
userId: props.user.id,
|
userId: props.user.id,
|
||||||
});
|
});
|
||||||
emits('deleted', props.user.id);
|
emits('deleted', props.user.id);
|
||||||
} else {
|
|
||||||
os.alert({
|
|
||||||
type: 'error',
|
|
||||||
text: 'input not match',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function approveAccount() {
|
async function approveAccount() {
|
||||||
|
|
Loading…
Reference in a new issue