mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
only shows the Week modus of the calendar if it is not a widget and opens the MyLV links as new tabs instead of showing them in the modal
This commit is contained in:
@@ -14,6 +14,8 @@ export default {
|
||||
'classHeader',
|
||||
'mode',
|
||||
'updateMode',
|
||||
'noWeekView',
|
||||
'noMonthView',
|
||||
],
|
||||
props: {
|
||||
title: String
|
||||
@@ -44,12 +46,12 @@ export default {
|
||||
template: `
|
||||
<div class="calendar-header card-header w-100" :class="classHeader">
|
||||
|
||||
<div class="row justify-content-end" style="position: absolute; width: 98%; pointer-events: none;">
|
||||
<div v-if="!noWeekView && !noMonthView" class="row justify-content-end" style="position: absolute; width: 98%; pointer-events: none;">
|
||||
<div class="col-auto" style="pointer-events: all;">
|
||||
<div role="group" aria-label="Kalender Modus">
|
||||
<div role="group" aria-label="Kalender Modus">
|
||||
<button type="button" :class="{'active':mode_kurzbz == mode}" style="margin-right: 4px;" @click.prevent="$emit('updateMode',mode_kurzbz)" class="btn btn-outline-secondary" v-for="(mode_bezeichnung,mode_kurzbz) in modes">
|
||||
<i v-if="mode_kurzbz == 'week'" class="fa fa-calendar-week"></i>
|
||||
<i v-else-if="mode_kurzbz == 'month'" class="fa fa-calendar-days"></i>
|
||||
<i v-if="!noWeekView && mode_kurzbz == 'week'" class="fa fa-calendar-week"></i>
|
||||
<i v-else-if="!noMonthView && mode_kurzbz == 'month'" class="fa fa-calendar-days"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -118,7 +118,7 @@ export default {
|
||||
<div class="card-body " :style="bodyStyle">
|
||||
<ul class="list-group border-top-0 border-bottom-0 rounded-0">
|
||||
<template v-if="menu">
|
||||
<li type="button" v-for="menuItem in menu" @click="openLvOption(menuItem)" class="list-group-item border-0">{{menuItem.name}}</li>
|
||||
<li type="button" v-for="menuItem in menu" class="list-group-item border-0"><a :target="menuItem.c4_target" :href="menuItem.c4_link ? menuItem.c4_link : null">{{menuItem.name}}</a></li>
|
||||
</template>
|
||||
<template v-else>
|
||||
<li class="text-center" class="list-group-item"><i class="fa-solid fa-spinner fa-pulse fa-3x"></i></li>
|
||||
|
||||
Reference in New Issue
Block a user