(ThemeOptions) Fixed: Sidepanel settings are not resetting when layout changes

This commit is contained in:
Sercan Yemen 2018-07-17 13:02:11 +03:00
parent f8292af81e
commit 8454526ef5

View File

@ -82,8 +82,8 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
position : new FormControl() position : new FormControl()
}), }),
sidepanel: this._formBuilder.group({ sidepanel: this._formBuilder.group({
hidden: new FormControl(), hidden : new FormControl(),
position : new FormControl() position: new FormControl()
}) })
}), }),
customScrollbars: new FormControl() customScrollbars: new FormControl()
@ -185,7 +185,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
position : 'left', position : 'left',
variant : 'vertical-style-1' variant : 'vertical-style-1'
}, },
toolbar: { toolbar : {
background: 'mat-white-500-bg', background: 'mat-white-500-bg',
hidden : false, hidden : false,
position : 'below-static' position : 'below-static'
@ -194,6 +194,10 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
background: 'mat-fuse-dark-900-bg', background: 'mat-fuse-dark-900-bg',
hidden : false, hidden : false,
position : 'below-static' position : 'below-static'
},
sidepanel: {
hidden : false,
position: 'right'
} }
} }
}); });
@ -214,7 +218,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
position : 'left', position : 'left',
variant : 'vertical-style-1' variant : 'vertical-style-1'
}, },
toolbar: { toolbar : {
background: 'mat-white-500-bg', background: 'mat-white-500-bg',
hidden : false, hidden : false,
position : 'below' position : 'below'
@ -223,6 +227,10 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
background: 'mat-fuse-dark-900-bg', background: 'mat-fuse-dark-900-bg',
hidden : false, hidden : false,
position : 'below' position : 'below'
},
sidepanel: {
hidden : false,
position: 'right'
} }
} }
}); });
@ -243,7 +251,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
position : 'left', position : 'left',
layout : 'vertical-style-1' layout : 'vertical-style-1'
}, },
toolbar: { toolbar : {
background: 'mat-white-500-bg', background: 'mat-white-500-bg',
hidden : false, hidden : false,
position : 'above-static' position : 'above-static'
@ -252,6 +260,10 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
background: 'mat-fuse-dark-900-bg', background: 'mat-fuse-dark-900-bg',
hidden : false, hidden : false,
position : 'above-static' position : 'above-static'
},
sidepanel: {
hidden : false,
position: 'right'
} }
} }
}); });
@ -272,7 +284,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
position : 'top', position : 'top',
variant : 'vertical-style-1' variant : 'vertical-style-1'
}, },
toolbar: { toolbar : {
background: 'mat-white-500-bg', background: 'mat-white-500-bg',
hidden : false, hidden : false,
position : 'above' position : 'above'
@ -281,6 +293,10 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
background: 'mat-fuse-dark-900-bg', background: 'mat-fuse-dark-900-bg',
hidden : false, hidden : false,
position : 'above-fixed' position : 'above-fixed'
},
sidepanel: {
hidden : false,
position: 'right'
} }
} }
}); });