Tidying
This commit is contained in:
@@ -194,7 +194,6 @@ const setupPage = async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
console.log(calendarOptionsTimeline.value.resources)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
calendarOptionsTimeline.value.initialEvents = [
|
calendarOptionsTimeline.value.initialEvents = [
|
||||||
@@ -229,7 +228,6 @@ const setupPage = async () => {
|
|||||||
let tempEvents = []
|
let tempEvents = []
|
||||||
|
|
||||||
tempData.forEach(event => {
|
tempData.forEach(event => {
|
||||||
console.log(event)
|
|
||||||
let eventColor = profileStore.ownTenant.calendarConfig.eventTypes.find(type => type.label === event.eventtype).color
|
let eventColor = profileStore.ownTenant.calendarConfig.eventTypes.find(type => type.label === event.eventtype).color
|
||||||
|
|
||||||
let title = ""
|
let title = ""
|
||||||
@@ -253,21 +251,18 @@ const setupPage = async () => {
|
|||||||
|
|
||||||
|
|
||||||
if(event.profiles.length > 0) {
|
if(event.profiles.length > 0) {
|
||||||
console.log("Profiles found")
|
|
||||||
event.profiles.forEach(profile => {
|
event.profiles.forEach(profile => {
|
||||||
returnData.resourceIds.push(profile)
|
returnData.resourceIds.push(profile)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if(event.vehicles.length > 0) {
|
if(event.vehicles.length > 0) {
|
||||||
console.log("Vehicles found")
|
|
||||||
event.vehicles.forEach(vehicle => {
|
event.vehicles.forEach(vehicle => {
|
||||||
returnData.resourceIds.push(`F-${vehicle.id}`)
|
returnData.resourceIds.push(`F-${vehicle.id}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if(event.inventoryitems.length > 0) {
|
if(event.inventoryitems.length > 0) {
|
||||||
console.log("Inventoryitems found")
|
|
||||||
event.inventoryitems.forEach(inventoryitem => {
|
event.inventoryitems.forEach(inventoryitem => {
|
||||||
returnData.resourceIds.push(`I-${inventoryitem.id}`)
|
returnData.resourceIds.push(`I-${inventoryitem.id}`)
|
||||||
})
|
})
|
||||||
@@ -293,7 +288,6 @@ const setupPage = async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
calendarOptionsTimeline.value.initialEvents = tempEvents
|
calendarOptionsTimeline.value.initialEvents = tempEvents
|
||||||
console.log(calendarOptionsTimeline.value)
|
|
||||||
|
|
||||||
loaded.value = true
|
loaded.value = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user