Browse Source

Show button in side-bar if selectState is enabled

sbkwgh 8 năm trước cách đây
mục cha
commit
c3a450d32d
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/components/routes/Thread.vue

+ 3 - 3
src/components/routes/Thread.vue

@@ -1,9 +1,9 @@
 <template>
 	<div class='route_container'>
-		<template v-if='showSelect'>
-			Selected {{$store.state.thread.selectedPosts.length}}
-		</template>
 		<div class='thread_side_bar'>
+			<button class='button' :class='{ "button--disabled" : !$store.state.thread.selectedPosts.length }' v-if='showSelect'>
+				Delete selected posts
+			</button>
 			<menu-button
 				v-if='$store.state.admin'
 				:options='[