refactor: add status in children tree

This commit is contained in:
Net 2024-08-26 11:05:00 +07:00
parent 49986816d0
commit 3fdf401c11

View file

@ -193,7 +193,7 @@ const treeProductTypeAndGroup = computed(
actionDisabled: item.status === 'INACTIVE',
type: 'type',
})) ?? item._count.type > 0)
? [{ id: '', name: '' }]
? [{ id: '', name: '', actionDisabled: item.status === 'INACTIVE' }]
: [],
})) ?? [],
);
@ -1398,7 +1398,6 @@ watch(
});
currentStatusList.value.splice(1);
expandedTree.value.pop();
utilsStore.currentTitle.path.pop();
}