mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Bugfix] Remove team member from master-task modal
This commit is contained in:
1 parent
fcd8199d86
commit
7dfac0f155
4 files changed
+15
-58
No files matched your search
@@ -16,7 +16,7 @@
|
||||
|
||||
<div class="splitted-inputs">
|
||||
<!-- TODO: Bialko validacie -->
|
||||
<Datepicker @open="editDatepicker('date')" v-model="subtask.deadline" @focus="onDateFocus" :min-date="new Date()" class="modal-input left" format="dd.MM.yyyy" locale="sk" select-text="Vybrať" cancel-text="Zrušiť" placeholder="Dátum"
|
||||
<Datepicker v-model="subtask.deadline" :auto-apply="true" @focus="onDateFocus" :min-date="new Date()" class="modal-input left" format="dd.MM.yyyy" locale="sk" select-text="Vybrať" cancel-text="Zrušiť" placeholder="Dátum"
|
||||
:class="{ error: v$.subtask.deadline.$errors?.length }" :validations="v$.subtask.deadline" />
|
||||
|
||||
<v-text-field class="modal-input right" variant="solo" v-model="subtask._deadline_time" label="Čas" append-inner-icon="mdi-clock-outline" type="time" @focus="onInputFocus"
|
||||
@@ -207,18 +207,6 @@ export default {
|
||||
this.subtask.timeblocks.splice(i, 1)
|
||||
},
|
||||
|
||||
editDatepicker(type) {
|
||||
const calendarElement = document.getElementsByClassName('dp__instance_calendar')[0]
|
||||
const switchBtn = calendarElement.lastChild.querySelectorAll('.dp__button')[0]
|
||||
if (!calendarElement) return
|
||||
if (type == 'date') {
|
||||
calendarElement.lastChild.remove()
|
||||
} else if (type == 'time') {
|
||||
switchBtn.click()
|
||||
//calendarElement.lastChild.remove()
|
||||
}
|
||||
},
|
||||
|
||||
closeModal() {
|
||||
this.visible = false
|
||||
this.$router.replace({name: this.$route.name})
|
||||
|
||||
Reference in new issue
Block a user