fix: prevent keypress actions in the loading state (#4462)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
xLansang
2024-10-23 03:30:30 +11:00
committed by GitHub
parent cd1f7bb6b7
commit b6fba6f50e
8 changed files with 34 additions and 0 deletions

View File

@@ -352,6 +352,10 @@ const removeEnvironmentVariable = (id: number) => {
const isLoading = ref(false)
const saveEnvironment = async () => {
if (isLoading.value) {
return
}
isLoading.value = true
if (!editingName.value) {