Mention names of deleted resources in confirm dialogs
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user