Commit 81685280 by GD-A-150752

test-commit-3

parent 80c3a68d
...@@ -64,16 +64,21 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -64,16 +64,21 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
this.subscriptions.push(this.iframeMsgHandlingService.msgReceived.subscribe( this.subscriptions.push(this.iframeMsgHandlingService.msgReceived.subscribe(
(message: any) => { (message: any) => {
if (!message || !message.name) { if (!message || !message.name) {
this.clearMessageData();
return; return;
} }
if (message.name !== 'HiringTeamChat' || message.message === null) { if (message.name !== 'HiringTeamChat' || message.message === null) {
this.clearMessageData(); return;
}
if (message.name === 'HiringTeamChat' && message.message === null) {
this.jobId = null;
this.loggedIn = null;
this.showBubble = false;
return; return;
} }
const msg = JSON.parse(message.message); const msg = JSON.parse(message.message);
console.log('Admin Parsed', msg); console.log('Admin Parsed', msg);
this.jobId = msg.JobApplicationID; this.jobId = msg.JobApplicationID;
...@@ -206,11 +211,6 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -206,11 +211,6 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
); );
} }
clearMessageData(): void {
this.jobId = null;
this.loggedIn = null;
}
ngOnDestroy(): void { ngOnDestroy(): void {
this.utilsService.unsubscribeSubscriptions(this.subscriptions); this.utilsService.unsubscribeSubscriptions(this.subscriptions);
} }
......
...@@ -231,6 +231,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement ...@@ -231,6 +231,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
setEditorClass(): void { setEditorClass(): void {
setTimeout(() => { setTimeout(() => {
if (!this.messageEditor) {
return;
}
const editElement = this.messageEditor.getQuill().container; const editElement = this.messageEditor.getQuill().container;
if (!editElement) { if (!editElement) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment