Skip to content

Commit

Permalink
Merge pull request TwanoO67#56 from catull/fix-issue-55-disable-contr…
Browse files Browse the repository at this point in the history
…ol-side-bar

Fix for issue 55: Implement option to disable control-sidebar
  • Loading branch information
TwanoO67 authored Mar 13, 2018
2 parents feb1f11 + 3e6d442 commit 6ecd849
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ You can change skin and hide some buttons by passing data to the layout componen
'display_menu_user': false,
'display_menu_search': false,
'display_logout': true,
'display_control_sidebar': true,
header_components: []
*/
}],
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/auth/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
</div>
<!-- /.content-wrapper -->
<app-footer>{{ 'LOADING' | translate }} footer...</app-footer>
<app-control-sidebar>{{ 'LOADING' | translate }} control sidebar...</app-control-sidebar>
<app-control-sidebar *ngIf='display_control_sidebar'>{{ 'LOADING' | translate }} control sidebar...</app-control-sidebar>
</div>
<!-- ./wrapper -->
2 changes: 2 additions & 0 deletions src/layouts/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class LayoutAuthComponent implements OnInit, OnDestroy {
public display_logout = false;
public header_components = [];
public boxed_style = true;
public display_control_sidebar = true;
private logger: LoggerService;

constructor(
Expand All @@ -43,6 +44,7 @@ export class LayoutAuthComponent implements OnInit, OnDestroy {
this.display_menu_user = this.paramExistOrDefault(param, 'display_menu_user');
this.display_menu_search = this.paramExistOrDefault(param, 'display_menu_search');
this.display_logout = this.paramExistOrDefault(param, 'display_logout', false);
this.display_control_sidebar = this.paramExistOrDefault(param, 'display_control_sidebar', true);
this.header_components = this.paramExistOrDefault(param, 'header_components', []);
this.boxed_style = this.paramExistOrDefault(param, 'boxed_style', true);

Expand Down

0 comments on commit 6ecd849

Please sign in to comment.