Remove horizontal menu state check

This commit is contained in:
Çetin 2022-07-26 11:49:27 +03:00
parent 9c92d14969
commit 592c3de859
3 changed files with 2 additions and 6 deletions

View File

@ -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');

View File

@ -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();
} }
} }

View File

@ -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();
} }