Login error handling improvements

This commit is contained in:
estevez-dev
2019-09-04 23:40:37 +03:00
parent 56cd8963d7
commit 996fbf7bba
3 changed files with 22 additions and 15 deletions

View File

@ -768,6 +768,16 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
break;
}
case HAErrorActionType.RELOGIN: {
actions.add(FlatButton(
child: Text("${action.title}", style: textStyle),
onPressed: () {
ConnectionManager().logout().then((_) => _fullLoad());
},
));
break;
}
case HAErrorActionType.URL: {
actions.add(FlatButton(
child: Text("${action.title}", style: textStyle),