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

Commit

Permalink
Show report button when logged out (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
stairman06 authored Jun 23, 2022
1 parent 69a437a commit 371f14d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pages/_type/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,9 @@
<span class="value">{{ $dayjs(project.updated).fromNow() }}</span>
</div>
</div>
<hr v-if="$auth.user" class="card-divider" />
<hr class="card-divider" />
<div class="buttons">
<nuxt-link
v-if="$auth.user"
:to="`/create/report?id=${project.id}&t=project`"
class="iconified-button"
>
Expand Down
1 change: 0 additions & 1 deletion pages/_type/_id/version.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
Download
</a>
<nuxt-link
v-if="$auth.user"
:to="`/create/report?id=${version.id}&t=version`"
class="action iconified-button"
>
Expand Down
4 changes: 3 additions & 1 deletion pages/user/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
</div>
</div>
</div>
<template v-if="$auth.user && $auth.user.id !== user.id">
<template
v-if="!$auth.user || ($auth.user && $auth.user.id !== user.id)"
>
<hr class="card-divider" />
<nuxt-link
:to="`/create/report?id=${user.id}&t=user`"
Expand Down

0 comments on commit 371f14d

Please sign in to comment.