mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
improve
This commit is contained in:
@@ -186,7 +186,12 @@ export class ViewEventPage implements OnInit {
|
||||
|
||||
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||
|
||||
const div = document.createElement("div")
|
||||
div.innerHTML = res.Body.Text
|
||||
res.Body.Text = div.innerText
|
||||
this.loadedEvent = res;
|
||||
|
||||
this.addEventToDb(res);
|
||||
|
||||
loader.remove()
|
||||
@@ -208,7 +213,12 @@ export class ViewEventPage implements OnInit {
|
||||
|
||||
if(this.CalendarId) {
|
||||
this.eventsService.genericGetEvent(this.eventId, this.CalendarId).subscribe(res => {
|
||||
|
||||
const div = document.createElement("div")
|
||||
div.innerHTML = res.Body.Text
|
||||
res.Body.Text = div.innerText
|
||||
this.loadedEvent = res;
|
||||
|
||||
this.addEventToDb(res);
|
||||
|
||||
loader.remove()
|
||||
|
||||
Reference in New Issue
Block a user