소스 검색

Only show thread management button if logged in admin

sbkwgh 8 년 전
부모
커밋
1faa3b8cda
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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" }