mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
added 'add reservation'/'reservation not allowed' tooltips in calendar
This commit is contained in:
@@ -329,6 +329,9 @@ export default {
|
|||||||
return !dayEvents.some(ev => ev.start < end && ev.end > start);
|
return !dayEvents.some(ev => ev.start < end && ev.end > start);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.$p.loadCategory(["LvPlan"]);
|
||||||
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
this.disableAutoScroll();
|
this.disableAutoScroll();
|
||||||
},
|
},
|
||||||
@@ -425,6 +428,7 @@ export default {
|
|||||||
class="fhc-calendar-empty-slot"
|
class="fhc-calendar-empty-slot"
|
||||||
style="position:absolute; inset:0; z-index:1"
|
style="position:absolute; inset:0; z-index:1"
|
||||||
v-cal-click:slot="{ date, part }"
|
v-cal-click:slot="{ date, part }"
|
||||||
|
:title="this.reservierbarMap?.[date.toISODate()] ? $p.t('LvPlan/add_reservation') : $p.t('LvPlan/reservation_not_allowed')"
|
||||||
>
|
>
|
||||||
<div class="fhc-calendar-empty-slot-plus">
|
<div class="fhc-calendar-empty-slot-plus">
|
||||||
<i v-if="this.reservierbarMap?.[date.toISODate()]" class="fa-solid fa-plus"></i>
|
<i v-if="this.reservierbarMap?.[date.toISODate()]" class="fa-solid fa-plus"></i>
|
||||||
|
|||||||
@@ -29924,6 +29924,46 @@ array(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'app' => 'core',
|
||||||
|
'category' => 'LvPlan',
|
||||||
|
'phrase' => 'add_reservation',
|
||||||
|
'insertvon' => 'system',
|
||||||
|
'phrases' => array(
|
||||||
|
array(
|
||||||
|
'sprache' => 'German',
|
||||||
|
'text' => 'Reservierung hinzufügen',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'sprache' => 'English',
|
||||||
|
'text' => 'Add reservation',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'app' => 'core',
|
||||||
|
'category' => 'LvPlan',
|
||||||
|
'phrase' => 'reservation_not_allowed',
|
||||||
|
'insertvon' => 'system',
|
||||||
|
'phrases' => array(
|
||||||
|
array(
|
||||||
|
'sprache' => 'German',
|
||||||
|
'text' => 'Reservierung nicht erlaubt',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'sprache' => 'English',
|
||||||
|
'text' => 'Reservation not allowed',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
// LvPlan Phrasen ende
|
// LvPlan Phrasen ende
|
||||||
//ProfilUpdate Phrasen start
|
//ProfilUpdate Phrasen start
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in New Issue
Block a user