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 (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
triphora authored Aug 2, 2023
1 parent 0d15024 commit a4bead1
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 @@ -305,14 +305,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 a4bead1

Please sign in to comment.