`, 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: `