fix(fe): new task dialog

This commit is contained in:
Denis Gukov 2022-10-29 22:05:42 +05:00
parent f3696984b7
commit 31e532548b

View File

@ -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>
@ -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', {