|
|
@ -502,15 +502,27 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
incidentHTML() {
|
|
|
|
incidentHTML() {
|
|
|
|
|
|
|
|
if (this.incident.content != null) {
|
|
|
|
return DOMPurify.sanitize(marked(this.incident.content));
|
|
|
|
return DOMPurify.sanitize(marked(this.incident.content));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
descriptionHTML() {
|
|
|
|
descriptionHTML() {
|
|
|
|
|
|
|
|
if (this.config.description != null) {
|
|
|
|
return DOMPurify.sanitize(marked(this.config.description));
|
|
|
|
return DOMPurify.sanitize(marked(this.config.description));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
footerHTML() {
|
|
|
|
footerHTML() {
|
|
|
|
|
|
|
|
if (this.config.footerText != null) {
|
|
|
|
return DOMPurify.sanitize(marked(this.config.footerText));
|
|
|
|
return DOMPurify.sanitize(marked(this.config.footerText));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|