opt.: server item onTap when err occurs (#310)

This commit is contained in:
lollipopkit
2024-03-16 23:52:11 +08:00
parent f654557fae
commit 8bfb0eb9e0
7 changed files with 39 additions and 39 deletions

View File

@@ -176,8 +176,8 @@ class _ServerPageState extends State<ServerPage>
onTap: () {
if (srv.canViewDetails) {
AppRoute.serverDetail(spi: srv.spi).go(context);
} else if (srv.status.err != null) {
_showFailReason(srv.status);
} else {
AppRoute.serverEdit(spi: srv.spi).go(context);
}
},
onLongPress: () {