From c5d3037c9dfe1b63dcbe694107a70cdd3575ee49 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 15 Nov 2024 10:45:46 -0600 Subject: [PATCH] Fix tag wrapping + duplicate reloads --- src/components/ArtifactListings.vue | 18 ++++++++++-------- src/components/{Navbar.vue => NavBar.vue} | 0 src/stores/artifact.js | 4 ++++ 3 files changed, 14 insertions(+), 8 deletions(-) rename src/components/{Navbar.vue => NavBar.vue} (100%) diff --git a/src/components/ArtifactListings.vue b/src/components/ArtifactListings.vue index 0cda1dc..17afeaa 100644 --- a/src/components/ArtifactListings.vue +++ b/src/components/ArtifactListings.vue @@ -92,15 +92,17 @@ onMounted(async () => {
-
+
Tags: - +
+ +
Badges: diff --git a/src/components/Navbar.vue b/src/components/NavBar.vue similarity index 100% rename from src/components/Navbar.vue rename to src/components/NavBar.vue diff --git a/src/stores/artifact.js b/src/stores/artifact.js index f4b2b51..b7cc2ec 100644 --- a/src/stores/artifact.js +++ b/src/stores/artifact.js @@ -76,6 +76,10 @@ export const useArtifactsStore = defineStore('artifacts', { } }, async fetchAllArtifacts() { + if (this.artifacts.length > 0){ + return + } + await this.fetchBadges() this.loading = true; let after = null;