Browse Source

neon: Only show reload button during login when server is already set

pull/178/head
jld3103 2 years ago
parent
commit
e916fcd8f8
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 10
      packages/neon/lib/src/pages/login.dart

10
packages/neon/lib/src/pages/login.dart

@ -141,10 +141,12 @@ class _LoginPageState extends State<LoginPage> {
icon: const Icon(Icons.arrow_back), icon: const Icon(Icons.arrow_back),
), ),
actions: [ actions: [
IconButton( if (serverConnectionStateSnapshot.data != null) ...[
onPressed: _loginBloc.refresh, IconButton(
icon: const Icon(Icons.refresh), onPressed: _loginBloc.refresh,
), icon: const Icon(Icons.refresh),
),
],
], ],
) )
: null, : null,

Loading…
Cancel
Save