Add safety and state refresh when adding to collection (#1535)

This commit is contained in:
Carter
2024-01-07 16:58:30 -08:00
committed by GitHub
parent 42a80a41ca
commit 683b0f5c48
2 changed files with 15 additions and 5 deletions

View File

@@ -305,7 +305,7 @@
:key="option.id"
:model-value="option.projects.includes(project.id)"
class="popout-checkbox"
@update:model-value="userCollectProject(option, project.id)"
@update:model-value="() => onUserCollectProject(option, project.id)"
>
{{ option.name }}
</Checkbox>
@@ -1036,6 +1036,8 @@ if (!route.name.startsWith('type-id-settings')) {
})
}
const onUserCollectProject = useClientTry(userCollectProject)
async function clearMessage() {
startLoading()