Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
uiCanExit() {
if (this.canExit || equals(this.pristineMessage, this.message)) {
return true;
}
const message = 'You have not saved this message.';
const question = 'Navigate away and lose changes?';
return this.DialogService.confirm(message, question, 'Yes', 'No');
}
uiCanExit() {
if (this.canExit || equals(this.contact, this.pristineContact)) {
return true;
}
const message = 'You have unsaved changes to this contact.';
const question = 'Navigate away and lose changes?';
return this.dialogService.confirm(message, question);
}