release 1.0.2 fixes
parent
4d4ea42c6a
commit
903cc3cb70
|
|
@ -36,7 +36,7 @@ Future<void> checkUserAction(Store<AppState> store) async {
|
||||||
Response<Message> session = await _api.isActive(token);
|
Response<Message> session = await _api.isActive(token);
|
||||||
isAuthenticated = "OK" == session.body.message;
|
isAuthenticated = "OK" == session.body.message;
|
||||||
} else {
|
} else {
|
||||||
await Future.delayed(Duration(milliseconds: 100));
|
await Future.delayed(Duration(milliseconds: 2000));
|
||||||
}
|
}
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
SetUserStateAction(
|
SetUserStateAction(
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class SettingState {
|
||||||
//read hive
|
//read hive
|
||||||
factory SettingState.initial(SettingState payload) {
|
factory SettingState.initial(SettingState payload) {
|
||||||
return SettingState(
|
return SettingState(
|
||||||
mode: payload?.mode ?? SettingModeCalc,
|
mode: payload?.mode ?? SettingModeKassa,
|
||||||
tradeType: payload?.tradeType ?? SettingTradeTypeGood);
|
tradeType: payload?.tradeType ?? SettingTradeTypeGood);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ class LoginView extends StatelessWidget {
|
||||||
if (result.type == ResultType.Barcode &&
|
if (result.type == ResultType.Barcode &&
|
||||||
result.rawContent?.length == 60) {
|
result.rawContent?.length == 60) {
|
||||||
Redux.store.dispatch(authenticateToken(result.rawContent));
|
Redux.store.dispatch(authenticateToken(result.rawContent));
|
||||||
} else {
|
} else if (result.type == ResultType.Error ) {
|
||||||
_dialogService.showDialog(description: 'Не верный формат QR кода');
|
_dialogService.showDialog(description: 'Не верный формат QR кода');
|
||||||
}
|
}
|
||||||
} on PlatformException catch (e) {
|
} on PlatformException catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue