From 39cd5682c9ebad007759721e98df2bc8b2159835 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Thu, 11 Mar 2021 16:27:28 +0000 Subject: [PATCH] [Library|Trunk] fs-modal: add event emitter for close git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60629 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/modal/full-screen-modal/full-screen-modal.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/modal/full-screen-modal/full-screen-modal.component.ts b/utils/modal/full-screen-modal/full-screen-modal.component.ts index 3ec4e7ca..59fb76b9 100644 --- a/utils/modal/full-screen-modal/full-screen-modal.component.ts +++ b/utils/modal/full-screen-modal/full-screen-modal.component.ts @@ -41,6 +41,8 @@ export class FullScreenModalComponent implements OnInit { title: string = null; @Output() okEmitter: EventEmitter = new EventEmitter(); + @Output() + cancelEmitter: EventEmitter = new EventEmitter(); opened: boolean = false; private readonly element: any; @@ -69,6 +71,7 @@ export class FullScreenModalComponent implements OnInit { if(typeof document !== "undefined") { this.opened = false; document.getElementsByTagName('html')[0].classList.remove('fs-modal-open'); + this.cancelEmitter.emit(); } }