Skip to content

Commit ad53f42

Browse files
committed
feat: movethread
1 parent b17c408 commit ad53f42

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/views/Posts.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,10 @@
380380

381381
<!-- Move Thread -->
382382
<!-- TODO(boka): add data-balloon plugin -->
383-
<div class="control" data-balloon="Move Thread" v-if="PostsParentCtrl.canMove()">
384-
<a href="#" id="moveBoard" :class="{'clicked' : PostsParentCtrl.showMoveThreadModal }"
385-
@click.prevent="PostsParentCtrl.openMoveThreadModal()">
383+
<!-- data-balloon="Move Thread" -->
384+
<div class="control" v-if="canMove()">
385+
<a href="#" id="moveBoard" :class="{'clicked' : showMoveThreadModal}"
386+
@click.prevent="openMoveThreadModal()">
386387
<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
387388
<title></title>
388389
<path d="m29.36 7.74a3 3 0 0 0 -4.25 4.26l9 9h-28.73a3 3 0 0 0 0 6h28.76l-9 9a3 3 0 0 0 4.25 4.24l16.23-16.24z" />
@@ -506,6 +507,7 @@ export default {
506507
const highlightPost = () => console.log('highlightPost')
507508
const showUserControls = () => console.log('showUserControls')
508509
const watchThread = () => console.log('watchThread')
510+
const openMoveThreadModal = () => console.log('openMoveThreadModal')
509511
/* Internal Data */
510512
const $auth = inject(AuthStore)
511513
/* View Data */
@@ -531,7 +533,8 @@ export default {
531533
defaultAvatar: window.default_avatar,
532534
defaultAvatarShape: window.default_avatar_shape,
533535
disableSignature: false,
534-
showPurgeThreadModal: true
536+
showPurgeThreadModal: true,
537+
showMoveThreadModal: true
535538
})
536539
return {
537540
...toRefs(v),
@@ -567,7 +570,8 @@ export default {
567570
copyQuote,
568571
highlightPost,
569572
showUserControls,
570-
watchThread
573+
watchThread,
574+
openMoveThreadModal
571575
}
572576
}
573577
}

0 commit comments

Comments
 (0)