mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
in lv plan not fetching reservations if lv id query param is present
This commit is contained in:
@@ -83,10 +83,26 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getPromiseFunc(start, end) {
|
getPromiseFunc(start, end) {
|
||||||
return [
|
let functions = [
|
||||||
this.$api.call(ApiLvPlan.eventsLv(this.propsViewData.lv_id, start.toISODate(), end.toISODate())),
|
this.$api.call(
|
||||||
this.$api.call(ApiLvPlan.getLvPlanReservierungen(start.toISODate(), end.toISODate()))
|
ApiLvPlan.eventsLv(
|
||||||
|
this.propsViewData.lv_id,
|
||||||
|
start.toISODate(),
|
||||||
|
end.toISODate(),
|
||||||
|
),
|
||||||
|
),
|
||||||
];
|
];
|
||||||
|
if (!this.$props.propsViewData.lv_id?.length) {
|
||||||
|
functions.push(
|
||||||
|
this.$api.call(
|
||||||
|
ApiLvPlan.getLvPlanReservierungen(
|
||||||
|
start.toISODate(),
|
||||||
|
end.toISODate(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return functions;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user