passes the active_addons constant to the LvUebersicht Modal

This commit is contained in:
SimonGschnell
2024-06-26 16:37:54 +02:00
parent 7267d526bb
commit 5070353bf0
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ $this->load->view('templates/CISHTML-Header', $includesArray);
<div id="content">
<h2>Dashboard</h2>
<hr>
<fhc-dashboard dashboard="CIS"/>
<fhc-dashboard active_addons="<?php echo ACTIVE_ADDONS ?>" dashboard="CIS"/>
</div>
<?php $this->load->view('templates/CISHTML-Footer', $includesArray); ?>
@@ -14,13 +14,16 @@ export default {
result: false,
}
},
inject:["active_addons"],
mixins:[BsModal],
components:{
BsModal,
},
mounted(){
this.modal = this.$refs.modalContainer;
},
template:/*html*/`
<bs-modal ref="modalContainer" dialogClass="modal-lg">
<template #title>
+7 -1
View File
@@ -8,8 +8,14 @@ export default {
DashboardWidgetPicker
},
props: [
"dashboard"
"dashboard",
"active_addons",
],
provide(){
return{
active_addons: this.active_addons,
}
},
data: () => ({
sections: [],
widgets: null