mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
support for disabling the app’s built-in swipe-back navigation (#249)
This commit is contained in:
@@ -75,6 +75,11 @@
|
||||
<f7-list-item :title="tt('Statistics Settings')" link="/statistic/settings"></f7-list-item>
|
||||
<f7-list-item :title="tt('Settings Sync')" link="/settings/sync"></f7-list-item>
|
||||
|
||||
<f7-list-item>
|
||||
<span>{{ tt('Enable Swipe Back') }}</span>
|
||||
<f7-toggle :checked="isEnableSwipeBack" @toggle:change="isEnableSwipeBack = $event"></f7-toggle>
|
||||
</f7-list-item>
|
||||
|
||||
<f7-list-item>
|
||||
<span>{{ tt('Enable Animation') }}</span>
|
||||
<f7-toggle :checked="isEnableAnimate" @toggle:change="isEnableAnimate = $event"></f7-toggle>
|
||||
@@ -146,6 +151,16 @@ const currentTimezoneName = computed<string>(() => {
|
||||
return '';
|
||||
});
|
||||
|
||||
const isEnableSwipeBack = computed<boolean>({
|
||||
get: () => settingsStore.appSettings.swipeBack,
|
||||
set: value => {
|
||||
if (value !== settingsStore.appSettings.swipeBack) {
|
||||
settingsStore.setEnableSwipeBack(value);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const isEnableAnimate = computed<boolean>({
|
||||
get: () => settingsStore.appSettings.animate,
|
||||
set: value => {
|
||||
|
||||
Reference in New Issue
Block a user