forked from FoundKeyGang/FoundKey
client: improve account deletion question
The message may be confusing when used by an adminstrator because it said "your account".
This commit is contained in:
parent
4183c429e6
commit
d02a51525f
3 changed files with 4 additions and 4 deletions
|
@ -879,7 +879,7 @@ ffVisibility: "Follows/Followers Visibility"
|
|||
ffVisibilityDescription: "Allows you to configure who can see who you follow and who\
|
||||
\ follows you."
|
||||
continueThread: "View thread continuation"
|
||||
deleteAccountConfirm: "This will irreversibly delete your account. Proceed?"
|
||||
deleteAccountConfirm: "This will irreversibly delete the account {handle}. Proceed?"
|
||||
incorrectPassword: "Incorrect password."
|
||||
voteConfirm: "Confirm your vote for \"{choice}\"?"
|
||||
hide: "Hide"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
import FormInfo from '@/components/ui/info.vue';
|
||||
import FormButton from '@/components/ui/button.vue';
|
||||
import * as os from '@/os';
|
||||
import { signout } from '@/account';
|
||||
import { $i, signout } from '@/account';
|
||||
import { i18n } from '@/i18n';
|
||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||
|
||||
|
@ -19,7 +19,7 @@ async function deleteAccount() {
|
|||
{
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'warning',
|
||||
text: i18n.ts.deleteAccountConfirm,
|
||||
text: i18n.t('deleteAccountConfirm', { handle: '@' + $i.username }),
|
||||
});
|
||||
if (canceled) return;
|
||||
}
|
||||
|
|
|
@ -239,7 +239,7 @@ async function deleteAllFiles() {
|
|||
async function deleteAccount() {
|
||||
const confirm = await os.confirm({
|
||||
type: 'warning',
|
||||
text: i18n.ts.deleteAccountConfirm,
|
||||
text: i18n.t('deleteAccountConfirm', { handle: acct(user) }),
|
||||
});
|
||||
if (confirm.canceled) return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue