feat(agent): Add loading screen (#444)

* feat(uhk-message): Add spin animation

* feat(agent): Add loading page

* fix device connected / disconnected events
This commit is contained in:
Róbert Kiss
2017-10-14 01:22:44 +02:00
committed by László Monda
parent 01b07a3ab7
commit 737897b40e
14 changed files with 125 additions and 11 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import { DoNotUpdateAppAction, UpdateAppAction } from './store/actions/app-updat
import {
AppState,
getShowAppUpdateAvailable,
deviceConnected,
deviceConfigurationLoaded,
runningInElectron,
saveToKeyboardState
} from './store';
@@ -37,13 +37,13 @@ import { SaveUserConfigInBinaryFileAction, SaveUserConfigInJsonFileAction } from
})
export class MainAppComponent {
showUpdateAvailable$: Observable<boolean>;
deviceConnected$: Observable<boolean>;
deviceConfigurationLoaded$: Observable<boolean>;
runningInElectron$: Observable<boolean>;
saveToKeyboardState$: Observable<ProgressButtonState>;
constructor(private store: Store<AppState>) {
this.showUpdateAvailable$ = store.select(getShowAppUpdateAvailable);
this.deviceConnected$ = store.select(deviceConnected);
this.deviceConfigurationLoaded$ = store.select(deviceConfigurationLoaded);
this.runningInElectron$ = store.select(runningInElectron);
this.saveToKeyboardState$ = store.select(saveToKeyboardState);
}