You've already forked AstralRinth
forked from didirus/AstralRinth
Fix report buttons not working for signed-out users (#1255)
This commit is contained in:
@@ -305,14 +305,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<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" />
|
<ReportIcon aria-hidden="true" />
|
||||||
Report
|
Report
|
||||||
</a>
|
</nuxt-link>
|
||||||
<a class="iconified-button" :href="getAuthUrl()" rel="noopener nofollow">
|
<nuxt-link class="iconified-button" to="/auth/sign-in">
|
||||||
<HeartIcon aria-hidden="true" />
|
<HeartIcon aria-hidden="true" />
|
||||||
Follow
|
Follow
|
||||||
</a>
|
</nuxt-link>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -164,10 +164,10 @@
|
|||||||
<ReportIcon aria-hidden="true" />
|
<ReportIcon aria-hidden="true" />
|
||||||
Report
|
Report
|
||||||
</button>
|
</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" />
|
<ReportIcon aria-hidden="true" />
|
||||||
Report
|
Report
|
||||||
</a>
|
</nuxt-link>
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
v-if="currentMember"
|
v-if="currentMember"
|
||||||
class="action iconified-button"
|
class="action iconified-button"
|
||||||
|
|||||||
@@ -61,10 +61,10 @@
|
|||||||
<ReportIcon aria-hidden="true" />
|
<ReportIcon aria-hidden="true" />
|
||||||
Report
|
Report
|
||||||
</button>
|
</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" />
|
<ReportIcon aria-hidden="true" />
|
||||||
Report
|
Report
|
||||||
</a>
|
</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="isEditing">
|
<template v-if="isEditing">
|
||||||
<div class="inputs universal-labels">
|
<div class="inputs universal-labels">
|
||||||
|
|||||||
Reference in New Issue
Block a user