feat: show udev rules on missing device screen (#842)

* feat: show udev rules on missing device screen

* delete MissingDeviceComponent

* feat: change privilege and message device screen texts

* feat: change message device screen texts

* fix: load config from device

* fix: load config when hasPermission = true

* fix: load app start info after set permission rules

* fix: action dispatch

* fix: load config from device when UdevRulesInfo.Ok

* fix: load config from device when 0 device available

* feat: add extra space between the "old udev rule" and permission button
This commit is contained in:
Róbert Kiss
2018-11-09 01:30:40 +01:00
committed by László Monda
parent 10cd06c70b
commit 1a9bd7de83
26 changed files with 275 additions and 131 deletions

View File

@@ -1,10 +1,9 @@
import { CommandLineArgs } from './command-line-args';
import { DeviceConnectionState } from './device-connection-state';
export interface AppStartInfo {
commandLineArgs: CommandLineArgs;
deviceConnected: boolean;
hasPermission: boolean;
bootloaderActive: boolean;
deviceConnectionState: DeviceConnectionState;
platform: string;
osVersion: string;
}

View File

@@ -1,5 +1,9 @@
import { UdevRulesInfo } from './udev-rules-info';
export interface DeviceConnectionState {
connected: boolean;
hasPermission: boolean;
bootloaderActive: boolean;
zeroInterfaceAvailable: boolean;
udevRulesInfo: UdevRulesInfo;
}

View File

@@ -8,4 +8,5 @@ export * from './device-connection-state';
export * from './hardware-modules';
export * from './hardware-module-info';
export * from './save-user-configuration-data';
export * from './udev-rules-info';
export * from './update-firmware-data';

View File

@@ -0,0 +1,16 @@
/**
* What is the state of the udev rules.
* Only on Linux need extra udev rules.
*/
export enum UdevRulesInfo {
Unkonwn,
Ok,
/**
* Udev rules not exists need to setup on Linux
*/
NeedToSetup,
/**
* Udev rules exist but different than expected on Linux
*/
Different
}