Skip to content

Commit

Permalink
fixed shown edit button for non-logged-ins
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFun123 committed Sep 21, 2021
1 parent 397d244 commit 24cbfdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ export default {
overflow-x: auto;
resize: vertical;
border-radius: 7px;
margin-bottom: 13px;
background: #262B39;
color: #FFF;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Paste.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div id="action-buttons" :class="{mobile: $store.state.mobileVersion}">
<a v-if="isPWA()" @click="copyURL">Copy URL</a>
<a href="#paste-contents" v-if="extraContent !== ''">CODE</a>
<a v-if="$store.state.user.loggedIn && $store.state.user.id == userid" @click="deletePaste">DELETE</a>
<a v-if="$store.state.user.logged_in && $store.state.user.id == userid" @click="deletePaste">DELETE</a>
<a @click="editPaste(true)" v-if="!$store.state.mobileVersion">FORK</a>
<a v-if="$store.state.user.id == userid" @click="editPaste()">EDIT</a>
<a :href="rawURL" v-if="!passwordRequired && !multiPastes">RAW</a>
Expand Down

0 comments on commit 24cbfdc

Please sign in to comment.