Skip to content

Commit

Permalink
fix(fe): new task dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Oct 29, 2022
1 parent f369698 commit 31e5325
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web/src/components/NewTaskDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
v-model="dialog"
:save-button-text="TEMPLATE_TYPE_ACTION_TITLES[templateType]"
title="New Task"
@save="close"
@close="close"
@save="closeDialog"
@close="closeDialog"
>
<template v-slot:title={}>
<v-icon small class="mr-4">{{ TEMPLATE_TYPE_ICONS[templateType] }}</v-icon>
Expand Down Expand Up @@ -60,8 +60,10 @@ export default {
async value(val) {
this.dialog = val;
},
},
close(e) {
methods: {
closeDialog(e) {
this.dialog = false;
if (e) {
EventBus.$emit('i-show-task', {
Expand Down

0 comments on commit 31e5325

Please sign in to comment.