simplify user component (#447)

* simplify user component

* language picker selector
This commit is contained in:
Denys Vuika
2018-06-22 04:59:53 +01:00
committed by Cilibiu Bogdan
parent 045c4ee9a2
commit bc554bb8d3
9 changed files with 79 additions and 34 deletions

View File

@@ -31,7 +31,7 @@ import {
import { ElectronService } from '@ngstack/electron';
import { Store } from '@ngrx/store';
import { AppStore } from './store/states/app.state';
import { SetHeaderColorAction, SetAppNameAction, SetLogoPathAction } from './store/actions';
import { SetHeaderColorAction, SetAppNameAction, SetLogoPathAction, SetLanguagePickerAction } from './store/actions';
@Component({
selector: 'app-root',
@@ -115,5 +115,7 @@ export class AppComponent implements OnInit {
if (logoPath) {
this.store.dispatch(new SetLogoPathAction(logoPath));
}
const languagePicker = this.config.get<boolean>('languagePicker');
this.store.dispatch(new SetLanguagePickerAction(languagePicker));
}
}