Skip to content

Commit

Permalink
Fix tag wrapping + duplicate reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Powers committed Nov 15, 2024
1 parent 7e84435 commit c5d3037
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/ArtifactListings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,17 @@ onMounted(async () => {
<!-- Search by Tags -->
<div class="mb-6">
<div class="flex flex-wrap gap-2">
<div class="flex gap-2">
<span>Tags:</span>
<label v-for="(tag, index) in artifactsStore.tags" :key="index" class="flex items-center cursor-pointer">
<input type="checkbox" :value="tag.tag" v-model="state.selectedTags"
class="mr-1 form-checkbox h-4 w-4 text-lime-600 border-gray-300 rounded" />
<span class="text-lg font-medium text-gray-700 hover:text-lime-600 transition duration-300">
{{ tag.tag }}
</span>
</label>
<div class="flex flex-wrap gap-2">
<label v-for="(tag, index) in artifactsStore.tags" :key="index" class="flex items-center cursor-pointer">
<input type="checkbox" :value="tag.tag" v-model="state.selectedTags"
class="mr-1 form-checkbox h-4 w-4 text-lime-600 border-gray-300 rounded" />
<span class="text-lg font-medium text-gray-700 hover:text-lime-600 transition duration-300">
{{ tag.tag }}
</span>
</label>
</div>
</div>
<div class="flex flex-wrap gap-2">
<span>Badges:</span>
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions src/stores/artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5d3037

Please sign in to comment.