show confirm dialog before opening external link

This commit is contained in:
MaysWind
2025-11-06 00:51:09 +08:00
parent df23cb8cdd
commit 952731a2d4
20 changed files with 64 additions and 17 deletions
+3 -3
View File
@@ -32,7 +32,7 @@
<div class="login-page-powered-by margin-top-half">
<span>Powered by</span>
<f7-link external href="https://github.com/mayswind/ezbookkeeping" target="_blank">ezBookkeeping</f7-link>
<f7-link @click="openExternalUrl('https://github.com/mayswind/ezbookkeeping')" target="_blank">ezBookkeeping</f7-link>
<span>{{ version }}</span>
</div>
</f7-block-footer>
@@ -43,7 +43,7 @@
<div class="login-page-powered-by margin-top-half">
<span>Powered by</span>
<f7-link external href="https://github.com/mayswind/ezbookkeeping" target="_blank">ezBookkeeping</f7-link>
<f7-link @click="openExternalUrl('https://github.com/mayswind/ezbookkeeping')" target="_blank">ezBookkeeping</f7-link>
<span>{{ version }}</span>
</div>
</f7-toolbar>
@@ -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();