Skip to content

Commit 012f3ea

Browse files
authored
Merge pull request #2584 from nextcloud/bugfix/2580
2 parents 64e72a9 + 6e5df95 commit 012f3ea

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
</Modal>
3939

40-
<router-view v-show="!cardDetailsInModal || !$route.params.cardId" name="sidebar" />
40+
<router-view name="sidebar" :visible="!cardDetailsInModal || !$route.params.cardId" />
4141
</Content>
4242
</template>
4343

src/components/Sidebar.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@
2121
-->
2222

2323
<template>
24-
<router-view name="sidebar" />
24+
<router-view v-if="visible" name="sidebar" />
2525
</template>
2626

2727
<script>
2828
export default {
2929
name: 'Sidebar',
30+
props: {
31+
visible: {
32+
type: Boolean,
33+
default: true,
34+
},
35+
},
3036
methods: {
3137
closeSidebar() {
3238
this.$router.push({ name: 'board' })

src/components/card/Description.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default {
180180
const clickedIndex = [...document.querySelector('#description-preview').querySelectorAll('input')].findIndex((li) => li.id === e.target.id)
181181
const reg = /\[(X|\s|_|-)\]/ig
182182
let nth = 0
183-
const updatedDescription = this.description.replace(reg, (match, i, original) => {
183+
const updatedDescription = this.card.description.replace(reg, (match, i, original) => {
184184
let result = match
185185
if ('' + nth++ === '' + clickedIndex) {
186186
if (match.match(/^\[\s\]/i)) {

0 commit comments

Comments
 (0)