fix: prevent keypress actions in the loading state (#4462)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
@@ -63,6 +63,10 @@ const isLoading = ref(false)
|
||||
const workspaceService = useService(WorkspaceService)
|
||||
|
||||
const addNewTeam = async () => {
|
||||
if (isLoading.value) {
|
||||
return
|
||||
}
|
||||
|
||||
isLoading.value = true
|
||||
await pipe(
|
||||
TeamNameCodec.decode(editingName.value),
|
||||
|
||||
Reference in New Issue
Block a user