Template modal - Start from Scratch button + UT
Issue-ID: VID-739
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Change-Id: Ie390a53714212d4d943789d14bb2fb51f7311277
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
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 ab93d1a..e1ef59f 100644
--- a/vid-webpack-master/src/app/shared/utils/iframe.service.ts
+++ b/vid-webpack-master/src/app/shared/utils/iframe.service.ts
@@ -6,19 +6,19 @@
addClassOpenModal(elementClassName: string) {
const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
- if (parentBodyElement) {
+ if (parentBodyElement) {
parentBodyElement.classList.add("modal-open");
}
}
removeClassCloseModal(elementClassName: string) {
const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
- if (parentBodyElement) {
+ if (parentBodyElement) {
parentBodyElement.classList.remove("modal-open");
}
}
- closeIframe(dialogService : DialogService, that){
+ closeIframe(dialogService: DialogService, that) {
this.removeClassCloseModal('content');
dialogService.removeDialog(that);
setTimeout(() => {
@@ -27,16 +27,17 @@
}
- addFullScreen(){
- let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
- if (parentBodyElement) {
+
+ addFullScreen() {
+ let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
+ if (parentBodyElement) {
parentBodyElement.classList.add("full-screen");
}
}
- removeFullScreen(){
- let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
- if (parentBodyElement) {
+ removeFullScreen() {
+ let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
+ if (parentBodyElement) {
parentBodyElement.classList.remove("full-screen");
}
}