diff --git a/searchPages/searchUtils/portal-search-result.component.ts b/searchPages/searchUtils/portal-search-result.component.ts
index 520d54c2..28f0036f 100644
--- a/searchPages/searchUtils/portal-search-result.component.ts
+++ b/searchPages/searchUtils/portal-search-result.component.ts
@@ -75,14 +75,12 @@ export class PortalSearchResultComponent implements OnInit{
public confirmModalOpen(result: CommunityInfo & Stakeholder) {
this.selected = result;
- this.modal.cancelButton = true;
- this.modal.okButton = true;
if(this.type === 'stakeholder') {
this.modal.alertTitle = 'You are going to visit ' + result.name + ' Monitor Dashboard';
} else if (this.type === 'community') {
this.modal.alertTitle = 'You are going to visit ' + ((result.title) ? result.title : result.shortTitle) +' Gateway';
}
- this.modal.alertMessage = false;
+ this.modal.message = 'You will be navigated to a new tab. Are you sure that you want to proceed?';
this.modal.okButtonLeft = false;
this.modal.okButtonText = 'Yes';
this.modal.cancelButtonText = 'No';
diff --git a/sharedComponents/quick-contact/quick-contact.component.ts b/sharedComponents/quick-contact/quick-contact.component.ts
index ca2106c8..97ecbdea 100644
--- a/sharedComponents/quick-contact/quick-contact.component.ts
+++ b/sharedComponents/quick-contact/quick-contact.component.ts
@@ -1,7 +1,6 @@
import {Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
import {FormGroup} from "@angular/forms";
import {Subscriber} from "rxjs";
-import {SearchForm} from "../../searchPages/searchUtils/newSearchPage.component";
import {Background} from "../../utils/background-utils";
declare var UIkit;
diff --git a/utils/modal/alert.ts b/utils/modal/alert.ts
index 65b5e505..1d7da108 100644
--- a/utils/modal/alert.ts
+++ b/utils/modal/alert.ts
@@ -123,11 +123,15 @@ export class AlertModal {
*/
public select: boolean = true;
/**
- * Emitted when a ok button was clicked
+ * Emitted when ok button was clicked
* or when Ok method is called.
*/
@Output() public alertOutput: EventEmitter
= new EventEmitter();
-
+ /**
+ * Emitted when cancel button was clicked
+ * or when cancel method is called.
+ */
+ @Output() public cancelOutput: EventEmitter = new EventEmitter();
@ViewChild('element') element: ElementRef;
@@ -136,7 +140,7 @@ export class AlertModal {
/**
- * Opens a alert window creating backdrop.
+ * Opens an alert window creating backdrop.
*/
open() {
UIkit.modal(this.element.nativeElement).show();
@@ -164,5 +168,6 @@ export class AlertModal {
*/
cancel() {
UIkit.modal(this.element.nativeElement).hide();
+ this.cancelOutput.emit(true);
}
}