Compare commits
2 Commits
b5f16a3d0d
...
088f371547
Author | SHA1 | Date | |
---|---|---|---|
088f371547 | |||
![]() |
e52ab871bc |
@ -268,11 +268,14 @@ const selectGroup = (group: Group) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const openCreateListDialog = (group: Group) => {
|
const openCreateListDialog = (group: Group) => {
|
||||||
availableGroupsForModal.value = [{
|
// Ensure we have the latest groups data
|
||||||
label: group.name,
|
fetchGroups().then(() => {
|
||||||
value: group.id
|
availableGroupsForModal.value = [{
|
||||||
}];
|
label: group.name,
|
||||||
showCreateListModal.value = true;
|
value: group.id
|
||||||
|
}];
|
||||||
|
showCreateListModal.value = true;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const onListCreated = (newList: any) => {
|
const onListCreated = (newList: any) => {
|
||||||
@ -280,6 +283,8 @@ const onListCreated = (newList: any) => {
|
|||||||
message: `List '${newList.name}' created successfully.`,
|
message: `List '${newList.name}' created successfully.`,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
|
// Optionally refresh the groups list to show the new list
|
||||||
|
fetchGroups();
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user