mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
show add transaction button in desktop navigation bar (#59)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { ref } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useDesktopPageStore = defineStore('desktopPages', () => {
|
||||
const showAddTransactionDialogInTransactionList = ref<boolean>(false);
|
||||
|
||||
function setShowAddTransactionDialogInTransactionList(): void {
|
||||
showAddTransactionDialogInTransactionList.value = true;
|
||||
}
|
||||
|
||||
function resetShowAddTransactionDialogInTransactionList(): void {
|
||||
showAddTransactionDialogInTransactionList.value = false;
|
||||
}
|
||||
|
||||
return {
|
||||
// states
|
||||
showAddTransactionDialogInTransactionList,
|
||||
// functions
|
||||
setShowAddTransactionDialogInTransactionList,
|
||||
resetShowAddTransactionDialogInTransactionList
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user