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

Commit

Permalink
Fix report buttons not working for signed-out users
Browse files Browse the repository at this point in the history
  • Loading branch information
triphora committed Aug 2, 2023
1 parent 34d63f3 commit be8721b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pages/[type]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@
</button>
</template>
<template v-else>
<a class="iconified-button" :href="getAuthUrl()" rel="noopener nofollow">
<nuxt-link class="iconified-button" to="/auth/sign-in">
<ReportIcon aria-hidden="true" />
Report
</a>
<a class="iconified-button" :href="getAuthUrl()" rel="noopener nofollow">
</nuxt-link>
<nuxt-link class="iconified-button" to="/auth/sign-in">
<HeartIcon aria-hidden="true" />
Follow
</a>
</nuxt-link>
</template>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pages/[type]/[id]/version/[version].vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@
<ReportIcon aria-hidden="true" />
Report
</button>
<a v-if="!auth.user" class="iconified-button" :href="getAuthUrl()" rel="noopener nofollow">
<nuxt-link v-if="!auth.user" class="iconified-button" to="/auth/sign-in">
<ReportIcon aria-hidden="true" />
Report
</a>
</nuxt-link>
<nuxt-link
v-if="currentMember"
class="action iconified-button"
Expand Down
4 changes: 2 additions & 2 deletions pages/user/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
<ReportIcon aria-hidden="true" />
Report
</button>
<a v-else class="iconified-button" :href="getAuthUrl()" rel="noopener nofollow">
<nuxt-link v-else class="iconified-button" to="/auth/sign-in">
<ReportIcon aria-hidden="true" />
Report
</a>
</nuxt-link>
</div>
<template v-if="isEditing">
<div class="inputs universal-labels">
Expand Down

0 comments on commit be8721b

Please sign in to comment.