feat: improve loading state for creation and fix types for adding image (#196)

This commit is contained in:
Tonya
2024-09-05 19:40:57 +00:00
committed by GitHub
parent 67c50068d9
commit 1e81b4bab4
3 changed files with 42 additions and 39 deletions

View File

@@ -73,6 +73,10 @@
const { shift } = useMagicKeys();
async function create(close = true) {
if (loading.value) {
toast.error("Already creating a location");
return;
}
loading.value = true;
if (shift.value) {