remove switch to mobile/desktop version in unlock page

This commit is contained in:
MaysWind
2023-07-10 00:38:22 +08:00
parent 8f44a26037
commit 09210d5d40
2 changed files with 3 additions and 29 deletions
+1 -11
View File
@@ -35,14 +35,6 @@
v-model="pinCode" @pincode:confirm="unlockByPin" />
</v-col>
<v-col cols="12" class="py-0 mt-4 mb-4">
<div class="d-flex align-center justify-space-between flex-wrap">
<a href="javascript:void(0);" @click="showMobileQrCode = true">
<span class="nav-item-title">{{ $t('Use on Mobile Device') }}</span>
</a>
</div>
</v-col>
<v-col cols="12">
<v-btn block :disabled="!isPinCodeValid(pinCode) || verifyingByWebAuthn"
@click="unlockByPin(pinCode)">
@@ -99,7 +91,6 @@
</v-col>
</v-row>
<switch-to-mobile-dialog v-model:show="showMobileQrCode" />
<confirm-dialog ref="confirmDialog"/>
<snack-bar ref="snackbar" />
</div>
@@ -123,8 +114,7 @@ export default {
data() {
return {
pinCode: '',
verifyingByWebAuthn: false,
showMobileQrCode: false
verifyingByWebAuthn: false
};
},
computed: {
+2 -18
View File
@@ -5,7 +5,7 @@
<f7-block class="login-page-tile margin-vertical-half">{{ $t('global.app.title') }}</f7-block>
</f7-login-screen-title>
<f7-list form class="margin-bottom-half">
<f7-list form>
<f7-list-item class="no-padding no-margin">
<template #inner>
<div class="display-flex justify-content-center full-line">{{ $t('Unlock Application') }}</div>
@@ -16,19 +16,7 @@
</f7-list-item>
</f7-list>
<f7-list class="no-margin-vertical">
<f7-list-item class="margin-horizontal">
<template #title>
<small>
<f7-link external :href="desktopVersionPath">{{ $t('Switch to Desktop Version') }}</f7-link>
</small>
</template>
<template #after>
</template>
</f7-list-item>
</f7-list>
<f7-list class="margin-top-half">
<f7-list>
<f7-list-button :class="{ 'disabled': !isPinCodeValid(pinCode) }" :text="$t('Unlock By PIN Code')" @click="unlockByPin"></f7-list-button>
<f7-list-button v-if="isWebAuthnAvailable" :text="$t('Unlock By WebAuthn')" @click="unlockByWebAuthn"></f7-list-button>
<f7-block-footer>
@@ -79,7 +67,6 @@ import { useExchangeRatesStore } from '@/stores/exchangeRates.js';
import assetConstants from '@/consts/asset.js';
import logger from '@/lib/logger.js';
import webauthn from '@/lib/webauthn.js';
import { getDesktopVersionPath } from '@/lib/version.js';
import { isModalShowing } from '@/lib/ui.mobile.js';
export default {
@@ -99,9 +86,6 @@ export default {
version() {
return 'v' + this.$version;
},
desktopVersionPath() {
return getDesktopVersionPath();
},
allLanguages() {
return this.$locale.getAllLanguageInfos();
},