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),
),
actions: [
IconButton(
onPressed: _loginBloc.refresh,
icon: const Icon(Icons.refresh),
),
if (serverConnectionStateSnapshot.data != null) ...[
IconButton(
onPressed: _loginBloc.refresh,
icon: const Icon(Icons.refresh),
),
],
],
)
: null,

Loading…
Cancel
Save