mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
prefil date and time [blocker]
This commit is contained in:
1 parent
2d7f29e9f4
commit
19a321baa8
6 files changed
+47
-24
No files matched your search
@@ -2,15 +2,17 @@
|
||||
<v-dialog v-model="visible" max-width="750">
|
||||
<v-card>
|
||||
<div class="d-flex justify-space-between align-center">
|
||||
<h1>
|
||||
Vytvoriť
|
||||
</h1>
|
||||
<h1>Vytvoriť</h1>
|
||||
<v-icon @click.stop="closeModal()" icon="mdi-close" size="large"></v-icon>
|
||||
</div>
|
||||
|
||||
<v-card-actions class="mt-10 d-flex justify-start align-center">
|
||||
<v-btn class="button primary half outline" @click.stop="createTask()">TASK</v-btn>
|
||||
<v-btn class="button primary half outline" @click.stop="createBlocker()">BLOCKER</v-btn>
|
||||
<v-btn class="button primary half outline" @click.stop="createTask()"
|
||||
>TASK</v-btn
|
||||
>
|
||||
<v-btn class="button primary half outline" @click.stop="createBlocker()"
|
||||
>BLOCKER</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
@@ -18,16 +20,19 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
emits: ['update'],
|
||||
emits: ['update', 'data'],
|
||||
props: ['data'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
visible: false
|
||||
visible: false,
|
||||
localData: null,
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
async showModal() {
|
||||
async showModal(data) {
|
||||
this.localData = data
|
||||
this.visible = true
|
||||
},
|
||||
|
||||
@@ -36,12 +41,22 @@ export default {
|
||||
},
|
||||
|
||||
createTask() {
|
||||
this.$events.emit('show-subtask-modal', {})
|
||||
this.$events.emit('show-subtask-modal', {
|
||||
subtask: {
|
||||
deadline: this.localData.date,
|
||||
_deadline_time: this.localData.time,
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
createBlocker() {
|
||||
this.$events.emit('show-blocker-modal', {})
|
||||
}
|
||||
}
|
||||
this.$events.emit('show-blocker-modal', {
|
||||
blocker: {
|
||||
starts_at_time: this.localData.time,
|
||||
datepicker: this.localData.date,
|
||||
},
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user