[Team modal] Temporary edit team fix

This commit is contained in:
Matej Glasnák committed 2023-02-02 08:44:41 +01:00
1 parent d5900b605e
commit 3bdfad22e6
5 files changed
+28 -22

No files matched your search

@@ -11,7 +11,7 @@
<v-menu>
<template v-slot:activator="{ props }">
<v-btn v-bind="props" class="button mr-5">
<v-btn v-bind="props" class="button primary mr-5">
<v-icon icon="mdi-plus" size="large"></v-icon>Vytvoriť
</v-btn>
</template>
@@ -132,9 +132,9 @@ export default {
border-radius: 6px
.button
background: #7f39fb
border-radius: 4px
color: #fff
height: 36px !important
min-width: 127px !important
.menu-dropdown
border: 1px solid rgba(33, 33, 33, 0.08) !important
border-radius: 16px
@@ -82,6 +82,8 @@ export default {
event.split = diffInDays * (-1) + 1
})
console.log(this.timelineData.tasks)
this.unscheduledTime = 0
this.timelineData.unscheduled_times.forEach(time => {
@@ -11,8 +11,8 @@
></v-icon>
</div>
<v-card-actions class="mt-10 d-flex justify-start align-center">
<v-btn class="button primary" variant="flat" @click="complete()">ÁNO</v-btn>
<v-btn class="ml-7 button cancel" @click.stop="visible = false">ZRUŠIŤ</v-btn>
<v-btn class="button primary half" variant="flat" @click="complete()">ÁNO</v-btn>
<v-btn class="button primary half outline" @click.stop="visible = false">ZRUŠIŤ</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@@ -67,6 +67,7 @@ import useVuelidate from '@vuelidate/core'
import { required } from '@vuelidate/validators'
import errorUtils from '@/plugins/lib@auth/_utils/error.utils'
import tmUtils from '@/plugins/tm@_utils/tm.utils'
import axios from 'axios'
const atLeastOne = (value) => value.length
@@ -124,9 +125,12 @@ export default {
async save() {
if (!(await this.v$.$validate())) return
try {
if (this.team.id)
await this.$axios.put_auth_data(`v1/teams/${this.team.id}`, this.team)
if (this.team.id) {
// await this.$axios.put_auth_data(`v1/teams/${this.team.id}`, this.team)
await axios.put(`v1/teams/${this.team.id}`, {data: this.team})
}
else
await this.$axios.post_auth_data(`v1/teams`, this.team)