adds the reservierungen overview action for the search result with a room object and removes debugging prints

This commit is contained in:
SimonGschnell
2024-09-11 14:51:52 +02:00
parent 6cf3896d49
commit cfea7e10f2
3 changed files with 4 additions and 11 deletions
@@ -241,10 +241,7 @@ export default {
},
mounted(){
// this is a test api call to test whether the addon lvevaluierung the menu point adds if the logged in user is the lector of the lehrveranstaltung
this.$fhcApi.factory.addons.getLvMenu(750, "WS2005").then(res =>{
console.log("this is the addon endpoint res",res);
});
},
template: /*html*/ `
+2 -6
View File
@@ -9,12 +9,12 @@ export default {
},
created(){
//! this should be the default action for a raum
/*this.actions.defaultaction = {
this.actions.defaultaction = {
type: "link",
action: function(data) {
return FHC_JS_DATA_STORAGE_OBJECT.app_root+'cms/content.php?content_id='+data.content_id;
}
}; */
};
},
emits: [ 'actionexecuted' ],
template: /*html*/`
@@ -37,10 +37,6 @@ export default {
<div class="searchbar_tablecell">Standort</div>
<div class="searchbar_tablecell">{{ res.standort }}</div>
</div>
<div class="searchbar_tablerow">
<div class="searchbar_tablecell">data</div>
<div class="searchbar_tablecell">{{ JSON.stringify(res,null,2) }}</div>
</div>
<div class="searchbar_tablerow">
<div class="searchbar_tablecell">Sitzplätze</div>
<div class="searchbar_tablecell">{{ res.sitzplaetze }}</div>
+1 -1
View File
@@ -98,7 +98,7 @@ export default {
},
methods: {
getActionsForRoom: function(res){
res.roomoverview= FHC_JS_DATA_STORAGE_OBJECT.app_root +
res.booklink= FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/CisVue/Cms/getRoomInformation/${res.ort_kurzbz}`;