Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
ensure loading in toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot committed Oct 6, 2023
1 parent b28bb2c commit a6d899e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/components/Item/CreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
};
const { error, data } = await api.items.create(out);
loading.value = false;
if (error) {
toast.error("Couldn't create item");
return;
Expand Down
1 change: 1 addition & 0 deletions frontend/components/Label/CreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
const { error, data } = await api.labels.create(form);
if (error) {
toast.error("Couldn't create label");
loading.value = false;
return;
}
Expand Down
1 change: 1 addition & 0 deletions frontend/components/Location/CreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
});
if (error) {
loading.value = false;
toast.error("Couldn't create location");
}
Expand Down

0 comments on commit a6d899e

Please sign in to comment.