Merge pull request #2584 from nextcloud/bugfix/2580

This commit is contained in:
Julius Härtl
2020-11-19 13:21:38 +01:00
committed by GitHub
3 changed files with 9 additions and 3 deletions

View File

@@ -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>

View File

@@ -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' })

View File

@@ -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)) {