Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-05-11 09:20:55 +02:00
parent 14f24b1839
commit 348ce306c8
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@ export default class ConversationListItem extends Vue {
@Prop({ required: true, type: Object }) conversation!: IConversation;
RouteName = RouteName;
htmlTextEllipsis(HTMLText: string) {
htmlTextEllipsis(htmlText: string) {
const element = document.createElement('div');
element.innerHTML = HTMLText.replace(/<br\s*\/?>/gi, ' ').replace(/<p>/gi, ' ');
element.innerHTML = htmlText.replace(/<br\s*\/?>/gi, ' ').replace(/<p>/gi, ' ');
return element.innerText;
}
}

View File

@ -402,7 +402,7 @@ export default class EditEvent extends Vue {
@Watch('eventId', { immediate: true })
resetFormForCreation(eventId) {
if (eventId == undefined) {
if (eventId === undefined) {
this.event = new EventModel();
}
}