Remove horizontal menu state check
This commit is contained in:
@@ -148,7 +148,7 @@ export class AppMenuitemComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get submenuAnimation() {
|
get submenuAnimation() {
|
||||||
if (this.layoutService.isDesktop() && (this.layoutService.isHorizontal() || this.layoutService.isSlim()))
|
if (this.layoutService.isDesktop() && this.layoutService.isSlim())
|
||||||
return this.active ? 'visible' : 'hidden';
|
return this.active ? 'visible' : 'hidden';
|
||||||
else
|
else
|
||||||
return this.root ? 'expanded' : (this.active ? 'expanded' : 'collapsed');
|
return this.root ? 'expanded' : (this.active ? 'expanded' : 'collapsed');
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export class AppConfigComponent {
|
|||||||
|
|
||||||
set menuMode(_val: string) {
|
set menuMode(_val: string) {
|
||||||
this.layoutService.config.menuMode = _val;
|
this.layoutService.config.menuMode = _val;
|
||||||
if (this.layoutService.isSlim() || this.layoutService.isHorizontal()) {
|
if (this.layoutService.isSlim()) {
|
||||||
this.menuService.reset();
|
this.menuService.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,10 +97,6 @@ export class LayoutService {
|
|||||||
return this.config.menuMode === 'slim';
|
return this.config.menuMode === 'slim';
|
||||||
}
|
}
|
||||||
|
|
||||||
isHorizontal() {
|
|
||||||
return this.config.menuMode === 'horizontal';
|
|
||||||
}
|
|
||||||
|
|
||||||
isMobile() {
|
isMobile() {
|
||||||
return !this.isDesktop();
|
return !this.isDesktop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user