You've already forked AstralRinth
forked from didirus/AstralRinth
Add safety and state refresh when adding to collection (#1535)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user