mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 08:35:43 +00:00
fix: ensure loading in toggled (#571)
This commit is contained in:
parent
b28bb2c4a8
commit
f3f96723b2
3 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const { error, data } = await api.items.create(out);
|
const { error, data } = await api.items.create(out);
|
||||||
|
loading.value = false;
|
||||||
if (error) {
|
if (error) {
|
||||||
toast.error("Couldn't create item");
|
toast.error("Couldn't create item");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
const { error, data } = await api.labels.create(form);
|
const { error, data } = await api.labels.create(form);
|
||||||
if (error) {
|
if (error) {
|
||||||
toast.error("Couldn't create label");
|
toast.error("Couldn't create label");
|
||||||
|
loading.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
|
loading.value = false;
|
||||||
toast.error("Couldn't create location");
|
toast.error("Couldn't create location");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue