Skip to content
Snippets Groups Projects
Commit 14d29364 authored by Trirst's avatar Trirst
Browse files

Fix individual image viewing

parent 4ffc9b3c
Branches
No related tags found
No related merge requests found
Pipeline #758 failed
......@@ -16,9 +16,12 @@
>
X
</div>
<a @click.ctrl.shift.prevent :href="`/${hash}`">
<router-link
@click.ctrl.shift.native.prevent
:to="{ name: 'ImageView', params: { hash: hash } }"
>
<img :src="`/api/image/${hash}/file`" />
</a>
</router-link>
</div>
</template>
......
<template>
<div>
<div id="image-container">
<img :src="`/api/image` + hash + `/file`" alt="" />
<img :src="`/api/image/` + hash + `/file`" alt="" />
</div>
</div>
</template>
......@@ -10,7 +10,7 @@
export default {
computed: {
hash: () => {
return window.location.pathname;
return window.location.pathname.split("/")[2];
},
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment