new version of budget view and fixes
This commit is contained in:
@@ -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};
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user