@ -14,7 +14,7 @@
/// limitations under the License.
/// limitations under the License.
///
///
import { ChangeDetectionStrategy , Component , Input , OnInit } from '@angular/core' ;
import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ;
import { MenuSection } from '@core/services/menu.models' ;
import { MenuSection } from '@core/services/menu.models' ;
import { Router } from '@angular/router' ;
import { Router } from '@angular/router' ;
import { Store } from '@ngrx/store' ;
import { Store } from '@ngrx/store' ;
@ -29,7 +29,7 @@ import { coerceBoolean } from '@shared/decorators/coercion';
changeDetection : ChangeDetectionStrategy.OnPush ,
changeDetection : ChangeDetectionStrategy.OnPush ,
standalone : false
standalone : false
} )
} )
export class MenuToggleComponent implements OnInit {
export class MenuToggleComponent {
@Input ( ) section : MenuSection ;
@Input ( ) section : MenuSection ;
@ -41,9 +41,6 @@ export class MenuToggleComponent implements OnInit {
private store : Store < AppState > ) {
private store : Store < AppState > ) {
}
}
ngOnInit() {
}
sectionHeight ( ) : string {
sectionHeight ( ) : string {
if ( this . section . opened && ! this . collapsed ) {
if ( this . section . opened && ! this . collapsed ) {
return this . section . pages . length * 40 + 'px' ;
return this . section . pages . length * 40 + 'px' ;
@ -72,8 +69,4 @@ export class MenuToggleComponent implements OnInit {
return false ;
return false ;
}
}
}
}
trackBySectionPages ( index : number , section : MenuSection ) {
return section . id ;
}
}
}