Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.header_components = [];
this.boxed_style = true;
var param = route.snapshot.data[0];
this.skin = this.paramExistOrDefault(param, 'skin', 'skin-blue');
this.display_control = this.paramExistOrDefault(param, 'display_control');
this.display_user = this.paramExistOrDefault(param, 'display_user');
this.display_tasks = this.paramExistOrDefault(param, 'display_tasks');
this.display_messages = this.paramExistOrDefault(param, 'display_messages');
this.display_notifications = this.paramExistOrDefault(param, 'display_notifications');
this.display_menu_user = this.paramExistOrDefault(param, 'display_menu_user');
this.display_menu_search = this.paramExistOrDefault(param, 'display_menu_search');
this.menu_title = this.paramExistOrDefault(param, 'menu_title', '');
this.display_logout = this.paramExistOrDefault(param, 'display_logout', false);
this.header_components = this.paramExistOrDefault(param, 'header_components', []);
this.boxed_style = this.paramExistOrDefault(param, 'boxed_style', true);
this.toastrConfig = new angular2_toaster_1.ToasterConfig({
newestOnTop: true,
showCloseButton: true,
tapToDismiss: false
});
// this.translate = translate.getTranslate();
// this.logger = new LoggerService( this.translate );
}
LayoutAuthComponent.prototype.paramExistOrDefault = function (param, index, default_value) {
constructor(
private userServ: UserService,
private toastr: ToasterService,
private translate: AdminLTETranslateService
) {
this.toastrConfig = new ToasterConfig( {
newestOnTop: true,
showCloseButton: true,
tapToDismiss: false
});
// this.translate = translate.getTranslate();
// this.logger = new LoggerService( this.translate );
}
constructor(private _user_serv: UserService, private _msg_serv: MessagesService, private _toastr: ToasterService) {
this.toastrConfig = new ToasterConfig({
showCloseButton: true,
newestOnTop: true,
tapToDismiss: false
});
}