Merge pull request #2584 from nextcloud/bugfix/2580
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
<router-view v-show="!cardDetailsInModal || !$route.params.cardId" name="sidebar" />
|
||||
<router-view name="sidebar" :visible="!cardDetailsInModal || !$route.params.cardId" />
|
||||
</Content>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -21,12 +21,18 @@
|
||||
-->
|
||||
|
||||
<template>
|
||||
<router-view name="sidebar" />
|
||||
<router-view v-if="visible" name="sidebar" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Sidebar',
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
closeSidebar() {
|
||||
this.$router.push({ name: 'board' })
|
||||
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
const clickedIndex = [...document.querySelector('#description-preview').querySelectorAll('input')].findIndex((li) => li.id === e.target.id)
|
||||
const reg = /\[(X|\s|_|-)\]/ig
|
||||
let nth = 0
|
||||
const updatedDescription = this.description.replace(reg, (match, i, original) => {
|
||||
const updatedDescription = this.card.description.replace(reg, (match, i, original) => {
|
||||
let result = match
|
||||
if ('' + nth++ === '' + clickedIndex) {
|
||||
if (match.match(/^\[\s\]/i)) {
|
||||
|
||||
Reference in New Issue
Block a user