support changing primary category for transaction category

This commit is contained in:
MaysWind
2024-06-23 23:37:58 +08:00
parent 9627e65d6d
commit 0e391bee50
12 changed files with 166 additions and 28 deletions
+2 -1
View File
@@ -436,10 +436,11 @@ export default {
categories
});
},
modifyTransactionCategory: ({ id, name, icon, color, comment, hidden }) => {
modifyTransactionCategory: ({ id, name, parentId, icon, color, comment, hidden }) => {
return axios.post('v1/transaction/categories/modify.json', {
id,
name,
parentId,
icon,
color,
comment,