Vue.component('tt-detail-table', { //language=Vue template: `
`, props: ['detailItems'], }) Vue.component('contract-journal', { //language=Vue template: `
`, props: ['journalEntries', 'contractId'], data() { return { expandedTexts: [], showNewJournal: false, window: window } }, methods: { parseTextAddUrls(entry, addIcon = null, replaceNewLines = false) { let text = JSON.parse(JSON.stringify(entry)).text if (replaceNewLines) { text = text.replace(/(?:\r\n|\r|\n)/g, '
') } // if addIcon is set, add it to the beginning of the text if (addIcon) { text = ` ${text}` } if (entry.url && entry["urlText"]) { return text.replace('[URL]', `${entry["urlText"]}`) } return text } } }) Vue.component('contract-view', { //language=Vue template: `
Vertragsdaten
Aktionen
Vertragslinks
`, data() { return { window: window, header: window.TT_CONFIG["HEADER"], subHeader: window.TT_CONFIG["SUB_HEADER"], contractDetails: window.TT_CONFIG["CONTRACT_DETAILS"], contractLinkTableHTML: null, } }, computed: { isPrivateProduct() { return window.TT_CONFIG["HEADER"].includes('Privat') } }, async mounted() { const response = await axios.get(window.TT_CONFIG["CONTRACT_LINK_TABLE_URL"]) this.contractLinkTableHTML = response.data console.log(response.data) } })