From ae868a0e53701603c2fd9f155caf7a8c6178fbd7 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 22 Jan 2024 22:24:51 +0100 Subject: [PATCH] fix: Do not translate Exception error message Signed-off-by: Ferdinand Thiessen --- l10n/messages.pot | 3 --- src/main.ts | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/l10n/messages.pot b/l10n/messages.pot index 858c02d5..4c5ba18a 100644 --- a/l10n/messages.pot +++ b/l10n/messages.pot @@ -11,9 +11,6 @@ msgstr "" msgid "Password" msgstr "" -msgid "Password confirmation dialog already mounted" -msgstr "" - msgid "This action needs authentication" msgstr "" diff --git a/src/main.ts b/src/main.ts index f61a8e75..76c93220 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,6 @@ import Vue from 'vue' import PasswordDialogVue from './components/PasswordDialog.vue' import { DIALOG_ID, MODAL_CLASS } from './globals' -import { t } from './utils/l10n' import type { ComponentInstance } from 'vue' @@ -33,7 +32,7 @@ export const isPasswordConfirmationRequired = (): boolean => { export const confirmPassword = (): Promise => { const isDialogMounted = Boolean(document.getElementById(DIALOG_ID)) if (isDialogMounted) { - return Promise.reject(new Error(t('Password confirmation dialog already mounted'))) + return Promise.reject(new Error('Password confirmation dialog already mounted')) } if (!isPasswordConfirmationRequired()) {