Merge branch 'cis40_2026-05_ma_rc' into demo-cis40

This commit is contained in:
Harald Bamberger
2026-05-18 16:51:33 +02:00
5 changed files with 33 additions and 17 deletions
+9 -1
View File
@@ -275,11 +275,15 @@ const app = Vue.createApp({
data: () => ({
appSideMenuEntries: {},
windowWidth: 0,
isStudent: null,
isMitarbeiter: null,
}),
provide() {
return { // provide injectable & watchable language property
language: Vue.computed(() => this.$p.user_language),
isMobile: Vue.computed(() => this.windowWidth < 767),
isStudent: Vue.computed(() => this.isStudent),
isMitarbeiter: Vue.computed(() => this.isMitarbeiter)
}
},
methods: {
@@ -320,8 +324,12 @@ const app = Vue.createApp({
this.windowWidth = window.innerWidth;
},
},
created() {
async created() {
this.windowWidth = window.innerWidth;
await this.$api.call(ApiAuthinfo.getAuthInfo()).then((res) => {
this.isMitarbeiter = res.data.isMitarbeiter;
this.isStudent = res.data.isStudent;
});
},
async mounted() {
document.addEventListener('click', this.handleClick);
@@ -100,7 +100,6 @@ export default {
}
},
openPruefungen() {
// early return if the pruefungenData is empty or not set
if (!this.LvHasPruefungenInformation) return;
LvPruefungen.popup({
@@ -182,6 +181,7 @@ export default {
<a href="#" class="col-auto text-start text-decoration-none" @click.prevent="openPruefungen">
<i class="fa fa-check text-success" v-if="positiv"></i>
<span class="ps-1" :style="'color:'+gradeColor">{{ grade || $p.t('lehre/noGrades') }}</span>
<i class="fa fa-circle-info ms-1"></i>
</a>
</template>
<!-- template for the LV with no pruefungen -->
@@ -201,4 +201,4 @@ export default {
</div>
</div>
</div>`
};
};