import BsModal from "../../Bootstrap/Modal"; import RaumContent from "./Content_types/Raum_contentmittitel"; export default { mixins:[BsModal], components:{ BsModal, RaumContent, }, props:{ contentID:{ type: Number, required: true, }, ort_kurzbz:{ type: String, required: true, } }, data(){ return{ result: false, content: null, }; }, methods:{ modalHidden: function(){ // reseting the content of the modal this.content = null; }, // this method is always called when the modal is shown modalShown: function(){ if(this.contentID){ this.$fhcApi.factory.cms.content(this.contentID).then(res =>{ this.content = res.data.content; this.type = res.data.type; }) } }, }, mounted(){ this.modal = this.$refs.modalContainer; }, template:/*html*/` ` };