diff --git a/src/lib/ui/mobile.ts b/src/lib/ui/mobile.ts
index 65a7db44..12f84cae 100644
--- a/src/lib/ui/mobile.ts
+++ b/src/lib/ui/mobile.ts
@@ -319,12 +319,38 @@ export function useI18nUIComponents() {
});
}
+ function openExternalUrl(url: string): void {
+ const textDirection = getCurrentLanguageTextDirection();
+
+ const cancelButton: Dialog.DialogButton = {
+ text: tt('Cancel')
+ };
+
+ const confirmButton: Dialog.DialogButton = {
+ text: tt('OK'),
+ onClick: () => {
+ window.open(url, '_blank');
+ }
+ };
+
+ f7ready((f7) => {
+ f7.dialog.create({
+ title: tt('global.app.title'),
+ text: tt('Are you sure you want to open this link?'),
+ content: `
${url}
`,
+ animate: isEnableAnimate(),
+ buttons: textDirection == TextDirection.RTL ? [confirmButton, cancelButton] : [cancelButton, confirmButton]
+ }).open();
+ });
+ }
+
return {
showAlert: showAlert,
showConfirm: showConfirm,
showPrompt: showPrompt,
showCancelableLoading: showCancelableLoading,
showToast: showToast,
+ openExternalUrl,
routeBackOnError
}
}
diff --git a/src/locales/de.json b/src/locales/de.json
index bdb4733f..cb7314c6 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Problem melden",
"Getting help": "Getting help",
"License": "Lizenz",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Ein Fehler ist aufgetreten",
"Parameter Invalid": "Parameter ungültig",
"Numeric Overflow": "Numerischer Überlauf",
diff --git a/src/locales/en.json b/src/locales/en.json
index 8b9a3a98..f4367316 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Report Issue",
"Getting help": "Getting help",
"License": "License",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "An error occurred",
"Parameter Invalid": "Parameter Invalid",
"Numeric Overflow": "Numeric Overflow",
diff --git a/src/locales/es.json b/src/locales/es.json
index a224279e..208af00f 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Informar problema",
"Getting help": "Getting help",
"License": "Licencia",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Se produjo un error",
"Parameter Invalid": "Parámetro no válido",
"Numeric Overflow": "Desbordamiento numérico",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 668554de..93e395c5 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Signaler un problème",
"Getting help": "Obtenir de l'aide",
"License": "Licence",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Une erreur s'est produite",
"Parameter Invalid": "Paramètre invalide",
"Numeric Overflow": "Dépassement numérique",
diff --git a/src/locales/it.json b/src/locales/it.json
index fa74dbaf..8ba91360 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Segnala problema",
"Getting help": "Ottenere aiuto",
"License": "Licenza",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Si è verificato un errore",
"Parameter Invalid": "Parametro non valido",
"Numeric Overflow": "Overflow numerico",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 7b7fc823..523a1dc8 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -2361,6 +2361,7 @@
"Report Issue": "問題を報告",
"Getting help": "Getting help",
"License": "ライセンス",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "エラーが発生しました",
"Parameter Invalid": "パラメーターが無効です",
"Numeric Overflow": "数値オーバーフロー",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 28cbdc5b..5dd8d675 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -2361,6 +2361,7 @@
"Report Issue": "문제 보고",
"Getting help": "도움 받기",
"License": "라이선스",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "오류가 발생했습니다.",
"Parameter Invalid": "잘못된 매개변수",
"Numeric Overflow": "숫자 오버플로우",
diff --git a/src/locales/nl.json b/src/locales/nl.json
index 91cd343c..2b2be85f 100644
--- a/src/locales/nl.json
+++ b/src/locales/nl.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Probleem melden",
"Getting help": "Hulp krijgen",
"License": "Licentie",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Er is een fout opgetreden",
"Parameter Invalid": "Ongeldige parameter",
"Numeric Overflow": "Numerieke overloop",
diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json
index e04029ae..f0c05abd 100644
--- a/src/locales/pt_BR.json
+++ b/src/locales/pt_BR.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Relatar problema",
"Getting help": "Obtendo ajuda",
"License": "Licença",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Ocorreu um erro",
"Parameter Invalid": "Parâmetro inválido",
"Numeric Overflow": "Transbordo numérico",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index e94e8fe6..c5d5a206 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Сообщить о проблеме",
"Getting help": "Getting help",
"License": "Лицензия",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Произошла ошибка",
"Parameter Invalid": "Неверный параметр",
"Numeric Overflow": "Числовое переполнение",
diff --git a/src/locales/th.json b/src/locales/th.json
index d9d5737e..a6e22529 100644
--- a/src/locales/th.json
+++ b/src/locales/th.json
@@ -2361,6 +2361,7 @@
"Report Issue": "รายงานปัญหา",
"Getting help": "ขอความช่วยเหลือ",
"License": "สิทธิ์การใช้งาน",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "เกิดข้อผิดพลาด",
"Parameter Invalid": "พารามิเตอร์ไม่ถูกต้อง",
"Numeric Overflow": "ตัวเลขล้น",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 5f2b4523..3166401f 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Повідомити про проблему",
"Getting help": "Getting help",
"License": "Ліцензія",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Сталася помилка",
"Parameter Invalid": "Неправильний параметр",
"Numeric Overflow": "Числове переповнення",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 64518217..a766daf9 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -2361,6 +2361,7 @@
"Report Issue": "Báo cáo sự cố",
"Getting help": "Getting help",
"License": "Giấy phép",
+ "Are you sure you want to open this link?": "Are you sure you want to open this link?",
"An error occurred": "Đã xảy ra lỗi",
"Parameter Invalid": "Tham số không hợp lệ",
"Numeric Overflow": "Tràn số",
diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json
index ec274b74..97bb50f9 100644
--- a/src/locales/zh_Hans.json
+++ b/src/locales/zh_Hans.json
@@ -2361,6 +2361,7 @@
"Report Issue": "报告问题",
"Getting help": "获取帮助",
"License": "许可协议",
+ "Are you sure you want to open this link?": "您确定要打开该链接?",
"An error occurred": "发生错误",
"Parameter Invalid": "参数错误",
"Numeric Overflow": "数值溢出",
diff --git a/src/locales/zh_Hant.json b/src/locales/zh_Hant.json
index 4787d605..d367fe02 100644
--- a/src/locales/zh_Hant.json
+++ b/src/locales/zh_Hant.json
@@ -2361,6 +2361,7 @@
"Report Issue": "回報問題",
"Getting help": "取得協助",
"License": "授權條款",
+ "Are you sure you want to open this link?": "您確定要開啟此連結?",
"An error occurred": "發生錯誤",
"Parameter Invalid": "參數無效",
"Numeric Overflow": "數值溢位",
diff --git a/src/views/mobile/AboutPage.vue b/src/views/mobile/AboutPage.vue
index 942b6c94..eb0cebc9 100644
--- a/src/views/mobile/AboutPage.vue
+++ b/src/views/mobile/AboutPage.vue
@@ -14,23 +14,23 @@
-
-
-
+
+
+
{{ tt('Exchange Rates Data') }}
-
+
{{ tt('Map') }}
-
+
@@ -82,7 +82,7 @@ import { useI18nUIComponents } from '@/lib/ui/mobile.ts';
import { useAboutPageBase } from '@/views/base/AboutPageBase.ts';
const { tt } = useI18n();
-const { showAlert } = useI18nUIComponents();
+const { showAlert, openExternalUrl } = useI18nUIComponents();
const {
clientVersion,
clientVersionMatchServerVersion,
diff --git a/src/views/mobile/LoginPage.vue b/src/views/mobile/LoginPage.vue
index 5ce66a9d..e307d810 100644
--- a/src/views/mobile/LoginPage.vue
+++ b/src/views/mobile/LoginPage.vue
@@ -37,7 +37,7 @@
- {{ tt('Switch to Desktop Version') }}
+ {{ tt('Switch to Desktop Version') }}
@@ -72,7 +72,7 @@
Powered by
- ezBookkeeping
+ ezBookkeeping
{{ version }}
@@ -83,7 +83,7 @@
Powered by
- ezBookkeeping
+ ezBookkeeping
{{ version }}
@@ -205,7 +205,7 @@ const props = defineProps<{
}>();
const { tt } = useI18n();
-const { showAlert, showToast } = useI18nUIComponents();
+const { showAlert, showConfirm, showToast, openExternalUrl } = useI18nUIComponents();
const rootStore = useRootStore();
@@ -247,6 +247,12 @@ const twoFAVerifyTypeSwitchName = computed(() => {
}
});
+function switchToDesktopVersion(): void {
+ showConfirm('Are you sure you want to switch to desktop version?', () => {
+ window.location.replace(getDesktopVersionPath());
+ });
+}
+
function login(): void {
const router = props.f7router;
diff --git a/src/views/mobile/UnlockPage.vue b/src/views/mobile/UnlockPage.vue
index ff72669c..181436f1 100644
--- a/src/views/mobile/UnlockPage.vue
+++ b/src/views/mobile/UnlockPage.vue
@@ -32,7 +32,7 @@
Powered by
- ezBookkeeping
+ ezBookkeeping
{{ version }}
@@ -43,7 +43,7 @@
Powered by
- ezBookkeeping
+ ezBookkeeping
{{ version }}
@@ -79,7 +79,7 @@ const props = defineProps<{
}>();
const { tt } = useI18n();
-const { showToast, showConfirm } = useI18nUIComponents();
+const { showToast, showConfirm, openExternalUrl } = useI18nUIComponents();
const { version, pinCode, isWebAuthnAvailable, isPinCodeValid, doAfterUnlocked, doRelogin } = useUnlockPageBase();
const settingsStore = useSettingsStore();
diff --git a/src/views/mobile/exchangerates/ListPage.vue b/src/views/mobile/exchangerates/ListPage.vue
index 52dcd91d..bb0320a1 100644
--- a/src/views/mobile/exchangerates/ListPage.vue
+++ b/src/views/mobile/exchangerates/ListPage.vue
@@ -91,7 +91,7 @@
{{ tt('Data source') }}
- {{ exchangeRatesData.dataSource }}
+ {{ exchangeRatesData.dataSource }}
{{ exchangeRatesData.dataSource }}
{{ tt('User Custom') }}
@@ -159,7 +159,7 @@ const {
formatExchangeRateAmountToWesternArabicNumerals
} = useI18n();
-const { showAlert, showToast } = useI18nUIComponents();
+const { showAlert, showToast, openExternalUrl } = useI18nUIComponents();
const {
baseCurrency,