Skip to content

Open source personal finance application

fix: TrnForm init on open

Ilya Komicheva34866cce3f4
diff --git a/app/layouts/default.vue b/app/layouts/default.vue
index b516e5e9..8945f165 100644
--- a/app/layouts/default.vue
+++ b/app/layouts/default.vue
@@ -75,8 +75,12 @@ usePageScroll()
const { ctrl_d, ctrl_s, escape } = useMagicKeys()
watch(ctrl_s!, (v) => {
- if (v)
- trnsFormStore.ui.isShow = !trnsFormStore.ui.isShow
+ if (v) {
+ if (trnsFormStore.ui.isShow)
+ trnsFormStore.ui.isShow = false
+ else
+ trnsFormStore.trnFormCreate()
+ }
})
watch(escape!, (v) => {