summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/utils/iframe.service.ts
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2020-01-01 10:39:51 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-01 10:39:51 +0000
commit5a3532bc41b580fea966f4be79d0b5462ef7434d (patch)
treeb67bdb1f72aba6f9aa9929600089aa5586be1032 /vid-webpack-master/src/app/shared/utils/iframe.service.ts
parent42e59f3f3af996a2de92186203d67231c994fa9e (diff)
parent51d9784740b2fa457fe39046de222930d07da0c1 (diff)
Merge "Show Templates popup when deploying from "SDC Catalog""
Diffstat (limited to 'vid-webpack-master/src/app/shared/utils/iframe.service.ts')
-rw-r--r--vid-webpack-master/src/app/shared/utils/iframe.service.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/shared/utils/iframe.service.ts b/vid-webpack-master/src/app/shared/utils/iframe.service.ts
index 4c699825f..ab93d1ac8 100644
--- a/vid-webpack-master/src/app/shared/utils/iframe.service.ts
+++ b/vid-webpack-master/src/app/shared/utils/iframe.service.ts
@@ -1,22 +1,31 @@
import {Injectable} from "@angular/core";
+import {DialogService} from "ng2-bootstrap-modal";
@Injectable()
export class IframeService {
addClassOpenModal(elementClassName: string) {
- var parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
+ const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
if (parentBodyElement) {
parentBodyElement.classList.add("modal-open");
}
}
removeClassCloseModal(elementClassName: string) {
- var parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
+ const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
if (parentBodyElement) {
parentBodyElement.classList.remove("modal-open");
}
}
+ closeIframe(dialogService : DialogService, that){
+ this.removeClassCloseModal('content');
+ dialogService.removeDialog(that);
+ setTimeout(() => {
+ window.parent.postMessage("closeIframe", "*");
+ }, 15);
+ }
+
addFullScreen(){
let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];