From d1c5e8987ffc0ec0c8c445cd6ed1ea32d74ad1c5 Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Sat, 30 Nov 2024 20:00:37 -0800 Subject: [PATCH] feat(components): Add loader to roster builder --- availabili.tf/src/components/Loader.vue | 39 +++++++++++++++++++ .../src/components/LoaderContainer.vue | 18 +++++++++ availabili.tf/src/stores/roster.ts | 2 +- availabili.tf/src/views/RosterBuilderView.vue | 23 +++++++++-- 4 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 availabili.tf/src/components/Loader.vue create mode 100644 availabili.tf/src/components/LoaderContainer.vue diff --git a/availabili.tf/src/components/Loader.vue b/availabili.tf/src/components/Loader.vue new file mode 100644 index 0000000..2322c4f --- /dev/null +++ b/availabili.tf/src/components/Loader.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/availabili.tf/src/components/LoaderContainer.vue b/availabili.tf/src/components/LoaderContainer.vue new file mode 100644 index 0000000..3b25141 --- /dev/null +++ b/availabili.tf/src/components/LoaderContainer.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/availabili.tf/src/stores/roster.ts b/availabili.tf/src/stores/roster.ts index 56163fe..8200e59 100644 --- a/availabili.tf/src/stores/roster.ts +++ b/availabili.tf/src/stores/roster.ts @@ -111,7 +111,7 @@ export const useRosterStore = defineStore("roster", () => { } function fetchAvailablePlayers(startTime: number, teamId: number) { - clientStore.call( + return clientStore.call( fetchAvailablePlayers.name, () => client.default.viewAvailableAtTime(startTime.toString(), teamId), (response) => { diff --git a/availabili.tf/src/views/RosterBuilderView.vue b/availabili.tf/src/views/RosterBuilderView.vue index d0897dc..a341c47 100644 --- a/availabili.tf/src/views/RosterBuilderView.vue +++ b/availabili.tf/src/views/RosterBuilderView.vue @@ -1,18 +1,22 @@