remove unused codes and update
This commit is contained in:
@@ -15,6 +15,7 @@ interface IPanelInfo {
|
||||
}
|
||||
|
||||
interface LayoutState {
|
||||
fullPageLoading?: boolean;
|
||||
staticMenuDesktopInactive?: boolean;
|
||||
overlayMenuActive?: boolean;
|
||||
configSidebarVisible?: boolean;
|
||||
@@ -42,6 +43,7 @@ export class LayoutService {
|
||||
};
|
||||
|
||||
_state: LayoutState = {
|
||||
fullPageLoading: false,
|
||||
staticMenuDesktopInactive: false,
|
||||
overlayMenuActive: false,
|
||||
configSidebarVisible: false,
|
||||
@@ -154,6 +156,13 @@ export class LayoutService {
|
||||
}));
|
||||
}
|
||||
|
||||
changeFullPageLoading(status: boolean) {
|
||||
this.layoutState.update((prev) => ({
|
||||
...prev,
|
||||
fullPageLoading: status,
|
||||
}));
|
||||
}
|
||||
|
||||
toggleDarkMode(config?: layoutConfig): void {
|
||||
const _config = config || this.layoutConfig();
|
||||
localStorage.setItem('isDarkTheme', JSON.stringify(_config.darkTheme));
|
||||
|
||||
Reference in New Issue
Block a user