You've already forked AstralRinth
forked from didirus/AstralRinth
Make edit buttons hidden when not authorized
This commit is contained in:
@@ -3,7 +3,13 @@
|
|||||||
<div class="version">
|
<div class="version">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h3>{{ version.name }}</h3>
|
<h3>{{ version.name }}</h3>
|
||||||
<div class="user-actions">
|
<div
|
||||||
|
v-if="
|
||||||
|
this.$auth.loggedIn &&
|
||||||
|
members.find((x) => x.user_id === this.$auth.user.id)
|
||||||
|
"
|
||||||
|
class="user-actions"
|
||||||
|
>
|
||||||
<button class="trash red">
|
<button class="trash red">
|
||||||
<TrashIcon />
|
<TrashIcon />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -180,7 +180,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</Popup>
|
</Popup>
|
||||||
<button class="default-button" @click="showPopup = !showPopup">
|
<button
|
||||||
|
v-if="
|
||||||
|
this.$auth.loggedIn &&
|
||||||
|
members.find((x) => x.user_id === this.$auth.user.id)
|
||||||
|
"
|
||||||
|
class="default-button"
|
||||||
|
@click="showPopup = !showPopup"
|
||||||
|
>
|
||||||
New Version
|
New Version
|
||||||
</button>
|
</button>
|
||||||
</ModPage>
|
</ModPage>
|
||||||
|
|||||||
Reference in New Issue
Block a user