diff --git a/CSETWebNg/src/app/layout/layout-main/layout-main.component.html b/CSETWebNg/src/app/layout/layout-main/layout-main.component.html index ccf1b46577..d8435af7fb 100644 --- a/CSETWebNg/src/app/layout/layout-main/layout-main.component.html +++ b/CSETWebNg/src/app/layout/layout-main/layout-main.component.html @@ -60,45 +60,51 @@ - - - - - - -
; isFooterVisible: boolean = false; - - @ViewChild('acc') accordion: NgbAccordion; - + footerClosed: boolean = true; + constructor( public auth: AuthenticationService, public assessSvc: AssessmentService, @@ -70,9 +68,7 @@ export class LayoutMainComponent implements OnInit, AfterViewInit { } ngAfterViewInit() { - setTimeout(() => { - this.isFooterOpen(); - }, 200); + } /** @@ -93,10 +89,10 @@ export class LayoutMainComponent implements OnInit, AfterViewInit { } isFooterOpen() { - if (!!this.accordion) { - return this.accordion.isExpanded('footerPanel'); + if (!this.footerClosed) { + return this.footerClosed = true; } - return false; + return this.footerClosed = false; } isRunningAnonymous() { diff --git a/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.html b/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.html index 27a134fe3a..5bc4e6e599 100644 --- a/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.html +++ b/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.html @@ -61,34 +61,40 @@
- - - - - - - diff --git a/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.scss b/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.scss index 9f18404980..3035bce1f0 100644 --- a/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.scss +++ b/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.scss @@ -514,7 +514,8 @@ label[required]::after { } .accordion-header { - padding: 0.2em; + padding-top: 0.2em; + margin-bottom:0; } .footer .bg-primary { diff --git a/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.ts b/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.ts index 96c4b11ce6..99323a7e0b 100644 --- a/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.ts +++ b/CSETWebNg/src/app/layout/renew-layout-main/renew-layout-main.component.ts @@ -24,7 +24,6 @@ import { AfterViewInit, Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { Router } from '@angular/router'; -import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap'; import { AggregationService } from '../../services/aggregation.service'; import { AssessmentService } from '../../services/assessment.service'; import { AuthenticationService } from '../../services/authentication.service'; @@ -47,8 +46,7 @@ export class RenewLayoutMainComponent implements OnInit, AfterViewInit { docUrl: string; dialogRef: MatDialogRef; isFooterVisible: boolean = false; - - @ViewChild('acc') accordion: NgbAccordion; + footerClosed:boolean = true; constructor( public auth: AuthenticationService, @@ -89,10 +87,10 @@ export class RenewLayoutMainComponent implements OnInit, AfterViewInit { } isFooterOpen() { - if (!!this.accordion) { - return this.accordion.isExpanded('footerPanel'); + if (!this.footerClosed) { + return this.footerClosed = true; } - return false; + return this.footerClosed = false; } isRunningAnonymous() { diff --git a/CSETWebNg/src/app/layout/rra-layout-main/rra-layout-main.component.html b/CSETWebNg/src/app/layout/rra-layout-main/rra-layout-main.component.html index 6898c69938..4e0016d75b 100644 --- a/CSETWebNg/src/app/layout/rra-layout-main/rra-layout-main.component.html +++ b/CSETWebNg/src/app/layout/rra-layout-main/rra-layout-main.component.html @@ -197,37 +197,42 @@ - - - - - - -
; - - @ViewChild('acc') accordion: NgbAccordion; + footerClosed:boolean = true; constructor( public auth: AuthenticationService, @@ -95,10 +93,10 @@ export class RraLayoutMainComponent implements OnInit, AfterViewInit { } isFooterOpen() { - if (!!this.accordion) { - return this.accordion.isExpanded('footerPanel'); + if (!this.footerClosed) { + return this.footerClosed = true; } - return false; + return this.footerClosed = false; } } diff --git a/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.html b/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.html index 07b19491d5..6d2e919b54 100644 --- a/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.html +++ b/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.html @@ -60,39 +60,44 @@
- - - - - - - diff --git a/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.scss b/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.scss index fdcdef431c..f2c68bbf12 100644 --- a/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.scss +++ b/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.scss @@ -502,7 +502,8 @@ label[required]::after { } .accordion-header { - padding: 0.2em; + padding-top: 0.2em; + margin-bottom:0; } .footer .bg-primary { diff --git a/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.ts b/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.ts index bc1c5821bc..4ac388cdd3 100644 --- a/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.ts +++ b/CSETWebNg/src/app/layout/tsa-layout-main/tsa-layout-main.component.ts @@ -24,7 +24,6 @@ import { AfterViewInit, Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { Router } from '@angular/router'; -import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap'; import { AggregationService } from '../../services/aggregation.service'; import { AssessmentService } from '../../services/assessment.service'; import { AuthenticationService } from '../../services/authentication.service'; @@ -47,8 +46,7 @@ export class TsaLayoutMainComponent implements OnInit, AfterViewInit { docUrl: string; dialogRef: MatDialogRef; isFooterVisible: boolean = false; - - @ViewChild('acc') accordion: NgbAccordion; + footerClosed:boolean=true; constructor( public auth: AuthenticationService, @@ -89,10 +87,10 @@ export class TsaLayoutMainComponent implements OnInit, AfterViewInit { } isFooterOpen() { - if (!!this.accordion) { - return this.accordion.isExpanded('footerPanel'); + if (!this.footerClosed) { + return this.footerClosed = true; } - return false; + return this.footerClosed = false; } isRunningAnonymous() {