Mention names of deleted resources in confirm dialogs

This commit is contained in:
Johannes Zellner
2025-06-12 17:24:07 +02:00
parent 228532b03e
commit 733de44d03
4 changed files with 15 additions and 12 deletions
+3 -3
View File
@@ -99,9 +99,9 @@ function onCopyToClipboard(password) {
window.pankow.notify({ type: 'success', text: 'Password copied!' });
}
async function onRemove(id) {
async function onRemove(id, name) {
const yes = await inputDialog.value.confirm({
message: t('profile.removeAppPassword.title'),
message: t('profile.removeAppPassword.title', { name }),
modal: true,
confirmStyle: 'danger',
confirmLabel: t('main.dialog.yes'),
@@ -199,7 +199,7 @@ onMounted(async () => {
<template #creationTime="password">{{ prettyLongDate(password.creationTime) }}</template>
<template #actions="password">
<div class="table-actions">
<Button small tool danger @click="onRemove(password.id)" v-tooltip="$t('profile.appPasswords.deletePasswordTooltip')" icon="far fa-trash-alt" />
<Button small tool danger @click="onRemove(password.id, password.name)" v-tooltip="$t('profile.appPasswords.deletePasswordTooltip')" icon="far fa-trash-alt" />
</div>
</template>
</TableView>