Close the popup after doing an action
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2021-05-30 17:57:26 +02:00
parent 4dcc377243
commit 1020f56f17
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 0 deletions

View File

@ -235,9 +235,11 @@ export default {
switch (type) {
case TYPE_LIST:
this.$router.push({name: 'list.index', params: {listId: item.id}})
this.closeQuickActions()
break
case TYPE_TASK:
this.$router.push({name: 'task.detail', params: {id: item.id}})
this.closeQuickActions()
break
case TYPE_CMD:
this.query = ''
@ -283,6 +285,7 @@ export default {
.then(r => {
this.success({message: 'The task was successfully created.'}, this)
this.$router.push({name: 'task.detail', params: {id: r.id}})
this.closeQuickActions()
})
.catch((e) => {
this.error(e, this)
@ -301,6 +304,7 @@ export default {
.then(r => {
this.success({message: 'The list was successfully created.'}, this)
this.$router.push({name: 'list.index', params: {listId: r.id}})
this.closeQuickActions()
})
.catch((e) => {
this.error(e, this)
@ -313,6 +317,7 @@ export default {
this.$store.commit('namespaces/addNamespace', r)
this.success({message: 'The namespace was successfully created.'}, this)
this.$router.back()
this.closeQuickActions()
})
.catch((e) => {
this.error(e, this)
@ -327,6 +332,7 @@ export default {
params: {id: r.id},
})
this.success({message: 'The team was successfully created.'}, this)
this.closeQuickActions()
})
.catch((e) => {
this.error(e, this)