fix: update deletion confirmation messages for automation rules, SSO, status, tags, and templates

This commit is contained in:
Abhinav Raut
2025-06-08 16:17:26 +05:30
parent 73e2950174
commit ca9a0a5892
7 changed files with 12 additions and 12 deletions
@@ -46,7 +46,7 @@
<AlertDialogDescription>
{{
$t('globals.messages.deletionConfirmation', {
name: t('globals.terms.automationRule').toLowerCase()
name: $t('globals.terms.automationRule').toLowerCase()
})
}}
</AlertDialogDescription>
@@ -23,7 +23,7 @@
<AlertDialogHeader>
<AlertDialogTitle>{{ $t('globals.messages.areYouAbsolutelySure') }}</AlertDialogTitle>
<AlertDialogDescription>
{{ $t('globals.messages.deletionConfirmation', { name: t('globals.terms.sso') }) }}
{{ $t('globals.messages.deletionConfirmation', { name: $t('globals.terms.sso') }) }}
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
@@ -51,7 +51,11 @@
<AlertDialogHeader>
<AlertDialogTitle> {{ $t('globals.messages.areYouAbsolutelySure') }}</AlertDialogTitle>
<AlertDialogDescription>
{{ $t('admin.status.deleteConfirmation') }}
{{
$t('globals.messages.deletionConfirmation', {
name: $t('globals.terms.status').toLowerCase()
})
}}
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
@@ -42,11 +42,7 @@
<AlertDialogHeader>
<AlertDialogTitle>{{ t('globals.messages.areYouAbsolutelySure') }}</AlertDialogTitle>
<AlertDialogDescription>
{{
t('globals.messages.deletionConfirmation', {
name: t('globals.terms.tag').toLowerCase()
})
}}
{{ $t('admin.tags.deleteConfirmation') }}
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
@@ -118,7 +114,7 @@ const form = useForm({
const onSubmit = form.handleSubmit(async (values) => {
await api.updateTag(props.tag.id, values)
emitter.emit(EMITTER_EVENTS.SHOW_TOAST, {
description: t('globals.messages.updatedSuccessfully', { name: t('globals.terms.tag') }),
description: t('globals.messages.updatedSuccessfully', { name: t('globals.terms.tag') })
})
dialogOpen.value = false
emitRefreshTagsList()
@@ -26,7 +26,7 @@
<AlertDialogDescription>
{{
$t('globals.messages.deletionConfirmation', {
name: t('globals.terms.template').toLowerCase()
name: $t('globals.terms.template').toLowerCase()
})
}}
</AlertDialogDescription>
+1 -1
View File
@@ -109,7 +109,7 @@ const onSubmit = form.handleSubmit(async (values) => {
dialogOpen.value = false
getTags()
emitter.emit(EMITTER_EVENTS.SHOW_TOAST, {
description: t('globals.messages.createdSuccessfully', { name: t('globals.terms.tag').toLowerCase() }),
description: t('globals.messages.createdSuccessfully', { name: t('globals.terms.tag') }),
})
} catch (error) {
emitter.emit(EMITTER_EVENTS.SHOW_TOAST, {
+1 -1
View File
@@ -519,7 +519,7 @@
"admin.customAttributes.regex.description": "Regex to validate the value of this custom attribute. Leave empty to skip validation.",
"admin.customAttributes.regexHint.description": "Regex pattern hint.",
"admin.customAttributes.keyNotAllowed": "The provided key is not allowed as it conflicts with default attributes. Please use a different key.",
"admin.status.deleteConfirmation": "Are you sure you want to delete this status? This will also remove it from all conversations",
"admin.tags.deleteConfirmation": "Are you sure you want to delete this tag? This will also remove it from all conversations",
"command.typeCmdOrSearch": "Type a command or search...",
"command.noCommandAvailable": "No command available",
"command.selectAMacro": "Select a macro to view details",