This commit is contained in:
romankko2 committed 2023-08-07 17:47:20 +02:00
1 parent bed6793b8b
commit b02a8c734d
18 files changed
+95 -23

No files matched your search

@@ -8,7 +8,7 @@
<v-card-actions class="mt-10 d-flex justify-start align-center mobile-view">
<v-btn class="button primary half outline" @click.stop="createTask()"
>TASK</v-btn
>SUB TASK</v-btn
>
<v-btn class="button primary half outline" @click.stop="createBlocker()"
>BLOCKER</v-btn
@@ -19,9 +19,12 @@
</template>
<script>
import modalMixin from '@/plugins/tm@modal/_mixins/modal.mixin'
export default {
emits: ['update', 'data'],
props: ['data'],
mixins: [ modalMixin ],
data() {
return {
@@ -30,6 +33,16 @@ export default {
}
},
mounted() {
this.$events.on('blocker-created', () => {
this.closeModal()
})
this.$events.on('task-created', () => {
this.closeModal()
})
},
methods: {
async showModal(data) {
this.localData = data
@@ -46,6 +59,9 @@ export default {
deadline: this.localData.date,
_deadline_time: this.localData.time,
},
onTaskCreated: () => {
this.closeModal()
}
})
},
@@ -55,6 +71,9 @@ export default {
starts_at_time: this.localData.time,
datepicker: this.localData.date,
},
onBlockerCreated: () => {
this.closeModal()
}
})
},
},