new version of budget view and fixes

This commit is contained in:
xds
2025-02-13 14:23:33 +03:00
parent adc254a7fc
commit 9cf3b8ef82
6 changed files with 68 additions and 75 deletions

View File

@@ -5,6 +5,7 @@ export const useDrawerStore = defineStore('drawer', () => {
const visible = ref(false);
const transactionType = ref(null)
const categoryType = ref(null)
const categoryId = ref(null)
const setVisible = (isVisible: boolean) => {
visible.value = isVisible;
@@ -17,6 +18,12 @@ export const useDrawerStore = defineStore('drawer', () => {
const setCategoryType = (type: string) => {
categoryType.value = type;
}
return {visible, transactionType, categoryType, setTransactionType, setCategoryType, setVisible}
const setCategoryId = (id: string|null) => {
categoryId.value = id
}
return {visible, transactionType, categoryType, categoryId, setTransactionType, setCategoryType, setVisible, setCategoryId};
})