Fix sending the user back to the list view they came from when opening a task in detail view
continuous-integration/drone/push Build is passing Details

Resolves #589
This commit is contained in:
kolaente 2021-07-19 11:20:05 +02:00
parent 46957c389f
commit b812c422f9
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 9 deletions

View File

@ -4,7 +4,7 @@
<heading v-model="task" :can-write="canWrite" ref="heading"/>
<h6 class="subtitle" v-if="parent && parent.namespace && parent.list">
{{ getNamespaceTitle(parent.namespace) }} >
<router-link :to="{ name: listViewName, params: { listId: parent.list.id } }">
<router-link :to="{ name: 'list.index', params: { listId: parent.list.id } }">
{{ getListTitle(parent.list) }}
</router-link>
</h6>
@ -474,7 +474,6 @@ export default {
showDeleteModal: false,
descriptionChanged: false,
listViewName: 'list.list',
// Used to avoid flashing of empty elements if the task content is not yet loaded.
visible: false,
@ -504,13 +503,6 @@ export default {
this.task = new TaskModel()
},
mounted() {
// Build the list path from the task detail name to send the user to the view they came from.
const parts = this.$route.name.split('.')
if (parts.length > 2 && parts[2] === 'detail') {
this.listViewName = `list.${parts[1]}`
}
this.loadTask()
},
computed: {