Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 371f14d

Browse files
authored
Show report button when logged out (#548)
1 parent 69a437a commit 371f14d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pages/_type/_id.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,9 @@
109109
<span class="value">{{ $dayjs(project.updated).fromNow() }}</span>
110110
</div>
111111
</div>
112-
<hr v-if="$auth.user" class="card-divider" />
112+
<hr class="card-divider" />
113113
<div class="buttons">
114114
<nuxt-link
115-
v-if="$auth.user"
116115
:to="`/create/report?id=${project.id}&t=project`"
117116
class="iconified-button"
118117
>

pages/_type/_id/version.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
Download
9595
</a>
9696
<nuxt-link
97-
v-if="$auth.user"
9897
:to="`/create/report?id=${version.id}&t=version`"
9998
class="action iconified-button"
10099
>

pages/user/_id.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
</div>
5050
</div>
5151
</div>
52-
<template v-if="$auth.user && $auth.user.id !== user.id">
52+
<template
53+
v-if="!$auth.user || ($auth.user && $auth.user.id !== user.id)"
54+
>
5355
<hr class="card-divider" />
5456
<nuxt-link
5557
:to="`/create/report?id=${user.id}&t=user`"

0 commit comments

Comments
 (0)