Ver Fonte

Only show thread management button if logged in admin

sbkwgh há 8 anos atrás
pai
commit
1faa3b8cda
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/components/routes/Thread.vue

+ 1 - 0
src/components/routes/Thread.vue

@@ -2,6 +2,7 @@
 	<div class='route_container'>
 		<div class='thread_side_bar'>
 			<menu-button
+				v-if='$store.state.admin'
 				:options='[
 					{ event: "lock_thread", value: $store.state.thread.locked ? "Unlock thread" : "Lock thread" },
 					{ event: "remove_posts", value: "Remove posts" }