Skip to content

Commit

Permalink
Removed ngbAccordion package from app
Browse files Browse the repository at this point in the history
The only place it was "being used" is an ACET component with a commented-out footer.  All the rest of the footers for the other skins has since been switched to use the Bootstrap 5 accordion.  So if the ACET footer ever needs to come back, it will be rewritten anyway.
  • Loading branch information
randywoods1 committed Sep 19, 2024
1 parent 4fb97b9 commit deaf164
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions CSETWebNg/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import { CreateUser } from './models/user.model';
import { AssessmentService } from './services/assessment.service';
import { AuthenticationService } from './services/authentication.service';
import { ConfigService } from './services/config.service';
import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap';
import { ExcelExportComponent } from './dialogs/excel-export/excel-export.component';
import { AggregationService } from './services/aggregation.service';
import { LocalStoreManager } from './services/storage.service';
Expand All @@ -62,7 +61,7 @@ export class AppComponent implements OnInit, AfterViewInit {
dialogRef: MatDialogRef<any>;
isFooterVisible: boolean = false;

@ViewChild('acc') accordion: NgbAccordion;
@ViewChild('acc') accordion: any;

constructor(
public auth: AuthenticationService,
Expand Down
3 changes: 1 addition & 2 deletions CSETWebNg/src/app/initial/login-tsa/login-tsa.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap';
import { AlertComponent } from '../../dialogs/alert/alert.component';
import { EjectionComponent } from '../../dialogs/ejection/ejection.component';
import { AssessmentService } from '../../services/assessment.service';
Expand Down Expand Up @@ -58,7 +57,7 @@ export class LoginTsaComponent implements OnInit {
browserIsIE: boolean = false;
showLoginBox: boolean = true;

@ViewChild('acc') accordion: NgbAccordion;
@ViewChild('acc') accordion: any;

/**
* Constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import { Component, ViewChild, ViewEncapsulation, isDevMode } 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';
Expand All @@ -47,7 +46,6 @@ export class AcetLayoutMainComponent {
isFooterVisible: boolean = false;
devMode: boolean = isDevMode();

@ViewChild('acc') accordion: NgbAccordion;

constructor(
public auth: AuthenticationService,
Expand Down Expand Up @@ -76,11 +74,4 @@ export class AcetLayoutMainComponent {
this.assessSvc.dropAssessment();
this.router.navigate(['/home']);
}

isFooterOpen() {
if (!!this.accordion) {
return this.accordion.isExpanded('footerPanel');
}
return false;
}
}

0 comments on commit deaf164

Please sign in to comment.