(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()
@ -177,23 +177,27 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
{ {
this.form.patchValue({ this.form.patchValue({
layout: { layout: {
width : 'fullwidth', width : 'fullwidth',
navbar : { navbar : {
background: 'mat-fuse-dark-700-bg', background: 'mat-fuse-dark-700-bg',
folded : false, folded : false,
hidden : false, hidden : false,
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'
}, },
footer : { footer : {
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'
} }
} }
}); });
@ -206,23 +210,27 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
{ {
this.form.patchValue({ this.form.patchValue({
layout: { layout: {
width : 'fullwidth', width : 'fullwidth',
navbar : { navbar : {
background: 'mat-fuse-dark-700-bg', background: 'mat-fuse-dark-700-bg',
folded : false, folded : false,
hidden : false, hidden : false,
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'
}, },
footer : { footer : {
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'
} }
} }
}); });
@ -235,23 +243,27 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
{ {
this.form.patchValue({ this.form.patchValue({
layout: { layout: {
width : 'fullwidth', width : 'fullwidth',
navbar : { navbar : {
background: 'mat-fuse-dark-700-bg', background: 'mat-fuse-dark-700-bg',
folded : false, folded : false,
hidden : false, hidden : false,
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'
}, },
footer : { footer : {
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'
} }
} }
}); });
@ -264,23 +276,27 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
{ {
this.form.patchValue({ this.form.patchValue({
layout: { layout: {
width : 'fullwidth', width : 'fullwidth',
navbar : { navbar : {
background: 'mat-fuse-dark-700-bg', background: 'mat-fuse-dark-700-bg',
folded : false, folded : false,
hidden : false, hidden : false,
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'
}, },
footer : { footer : {
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'
} }
} }
}); });