浏览代码

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" }