Add front- end backend for new category-group
This commit is contained in:
@@ -24,6 +24,19 @@ export const useCategoryStore = defineStore("category", {
|
||||
getters: {
|
||||
},
|
||||
actions: {
|
||||
async CreateCategoryGroup(
|
||||
group: string,
|
||||
) {
|
||||
const result = await POST(
|
||||
"/category-group/new",
|
||||
JSON.stringify({
|
||||
budgetId: useBudgetsStore().CurrentBudgetID,
|
||||
group: group,
|
||||
})
|
||||
);
|
||||
const response = await result.json();
|
||||
useCategoryStore().AddCategory(response);
|
||||
},
|
||||
async CreateCategory(
|
||||
group: string,
|
||||
name: string,
|
||||
|
Reference in New Issue
Block a user