Compare commits

...

2 Commits

View File

@ -268,11 +268,14 @@ const selectGroup = (group: Group) => {
};
const openCreateListDialog = (group: Group) => {
// Ensure we have the latest groups data
fetchGroups().then(() => {
availableGroupsForModal.value = [{
label: group.name,
value: group.id
}];
showCreateListModal.value = true;
});
};
const onListCreated = (newList: any) => {
@ -280,6 +283,8 @@ const onListCreated = (newList: any) => {
message: `List '${newList.name}' created successfully.`,
type: 'success'
});
// Optionally refresh the groups list to show the new list
fetchGroups();
};
onMounted(async () => {