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