Skip to content

Commit

Permalink
bug fix: new conversation with prechatform active, multi departments
Browse files Browse the repository at this point in the history
  • Loading branch information
dariodepa75 committed Dec 21, 2020
1 parent f0bd300 commit 57aee4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1366,16 +1366,16 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
* selected department
*/
public returnDepartmentSelected($event) {
this.g.wdLog(['onSelectDepartment: ', $event]);
if ($event) {
this.g.wdLog(['onSelectDepartment: ', $event]);
this.g.setParameter('departmentSelected', $event);
// this.settingsSaverService.setVariable('departmentSelected', $event);
this.isOpenHome = true;
this.isOpenSelectionDepartment = false;
if (this.g.isOpenPrechatForm === false && this.isOpenSelectionDepartment === false) {
this.isOpenConversation = true;
//this.startNwConversation();
this.obsOpenConversation.next();
this.obsOpenConversation.next(CONVERSATION_STATUS);
}
}
}
Expand Down Expand Up @@ -1403,7 +1403,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
if (this.g.isOpenPrechatForm === false && this.isOpenSelectionDepartment === false) {
this.isOpenConversation = true;
// this.startNwConversation();
this.obsOpenConversation.next();
this.obsOpenConversation.next(CONVERSATION_STATUS);
}
// this.settingsSaverService.setVariable('isOpenPrechatForm', false);
}
Expand Down

0 comments on commit 57aee4a

Please sign in to comment.