csv download lektor table as is; cis_menu_lv link hidden behind berechtigungen check; every tabulator now calculates remaining height by accessing window.visibleViewport.height and tabulator dataset element in order to get virtual DOM behaviour for faster rendering and better UX; filter component now emits uuid on created() lifecycle;

This commit is contained in:
Johann Hoffmann
2024-10-17 15:04:03 +02:00
parent c67e78d135
commit a04b2725f9
3 changed files with 29 additions and 3 deletions
+5 -1
View File
@@ -241,7 +241,11 @@ function checkZeilenUmbruch()
}
// Digitale Anwesenheiten
if(CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN && $angemeldet)
if(CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN && $angemeldet
&& ($rechte->isBerechtigt('extension/anw_ent_admin')
|| $rechte->isBerechtigt('extension/anwesenheit_lektor')
|| $rechte->isBerechtigt('extension/anwesenheit_student')
|| $rechte->isBerechtigt('extension/anwesenheit_admin')))
{
$link='';
+4 -2
View File
@@ -42,7 +42,8 @@ export const CoreFilterCmpt = {
},
emits: [
'nwNewEntry',
'click:new'
'click:new',
'uuidDefined'
],
props: {
onNwNewEntry: Function, // NOTE(chris): Hack to get the nwNewEntry listener into $props
@@ -568,6 +569,7 @@ export const CoreFilterCmpt = {
if (this.sideMenu && (!this.$props.onNwNewEntry || !(this.$props.onNwNewEntry instanceof Function)))
alert('"nwNewEntry" listener is mandatory when sideMenu is true');
this.uuid = _uuid++;
this.$emit('uuidDefined', this.uuid)
if (!this.tableOnly)
this.getFilter(); // get the filter data
},
@@ -658,4 +660,4 @@ export const CoreFilterCmpt = {
<!-- Tabulator -->
<div ref="table" :id="'filterTableDataset' + idExtra" class="filter-table-dataset"></div>
`
};
};
+20
View File
@@ -28178,6 +28178,26 @@ array(
)
)
),
array(
'app' => 'anwesenheiten',
'category' => 'global',
'phrase' => 'prestudentID',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Prestudent ID',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Prestudent ID',
'description' => '',
'insertvon' => 'system'
)
)
),
//
// DIGITALE ANWESENHEITEN PHRASEN END
//