submenu pre task a teams

This commit is contained in:
Filip Kaluža committed 2023-01-18 12:01:40 +01:00
1 parent e941534b5e
commit dd2d9240e4
3 files changed
+13 -13

No files matched your search

@@ -3,7 +3,9 @@
<v-select
v-model="selectedTeam"
class="subheader-input"
:items="teamsNames"
:items="teams"
item-title="name"
item-value="id"
label="Tím"
variant="outlined"
></v-select>
@@ -29,6 +31,7 @@
<script>
import { addDays, subDays } from 'date-fns'
import { mapGetters } from 'vuex'
export default {
props: {
@@ -43,7 +46,6 @@ export default {
data() {
return {
teams: [],
teamsNames: [],
// Kaluza: Napojit funkcionalitu
selectedTeam: '',
@@ -55,9 +57,11 @@ export default {
},
computed: {
...mapGetters('auth', ['user']),
time() {
return this.unscheduledTime
}
},
},
created() {
@@ -74,10 +78,8 @@ export default {
},
async _getTeams() {
this.teams = await this.$axios.get_auth_data('v1/teamsx')
this.teams.forEach(team => {
this.teamsNames.push(team.name)
})
this.teams = await this.$axios.get_auth_data('v1/teams')
// this.selectedTeam()
},
_getDay(emitDataChanged = true) {