Skip to content
Snippets Groups Projects
Commit 3f16a27e authored by Trirst's avatar Trirst
Browse files

Add tags display to image view page

parent 82c53f66
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,14 @@
<div class="flex flex-row">
<section class="flex flex-col sticky top-0 h-screen w-1/3">
<div>
Tags:
<span v-for="imageTag in imageTags">
<div>
<strong>Tags</strong>
<ul class="pl-2">
<li v-for="(imageTag, index) in imageTags" :key="index">
{{ imageTag }}
</li>
</ul>
</div>
</span>
</div>
</section>
......@@ -25,9 +30,7 @@ export default {
},
methods: {
async getImageTags() {
const response = await fetch(
`/api/image/${this.$route.params.flake}/tag`
);
const response = await fetch(`/api/image/${this.flake}/tag`);
const imageTags = await response.json();
return imageTags;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment