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