Merge branch 'develop' into feature/2024.9.0

This commit is contained in:
dakkar 2024-10-18 22:00:07 +01:00
commit 52e291af67
19 changed files with 206 additions and 18 deletions

View file

@ -69,22 +69,10 @@ async function deleteAccount() {
});
if (confirm.canceled) return;
const typed = await os.inputText({
text: i18n.t('typeToConfirm', { x: props.user.username }),
await os.apiWithDialog('admin/decline-user', {
userId: props.user.id,
});
if (typed.canceled) return;
if (typed.result === props.user.username) {
await os.apiWithDialog('admin/delete-account', {
userId: props.user.id,
});
emits('deleted', props.user.id);
} else {
os.alert({
type: 'error',
text: 'input not match',
});
}
emits('deleted', props.user.id);
}
async function approveAccount() {