]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
widgets: node overview: style-fix missing braces in else-if
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 10:55:21 +0000 (12:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 10:55:21 +0000 (12:55 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/widgets/pve_node_overview.dart

index 8f913c0489dfcdb40054a29d39f6f07372921f3a..020eebaaf2a54a6ab292cf5b0a991557eaf9720b 100644 (file)
@@ -25,13 +25,14 @@ class PveNodeOverview extends StatelessWidget {
   Icon getServiceStateIcon(BuildContext context, PveNodeServicesModel s) {
     if (s.state == 'running') {
       return Icon(Icons.play_arrow, color: Colors.green[400]);
-    } else if (s.unitState == 'masked' || s.unitState == 'not-found')
+    } else if (s.unitState == 'masked' || s.unitState == 'not-found') {
       return Icon(
         Icons.play_disabled,
         color: IconTheme.of(context).color!.withOpacity(0.75),
       );
-    else
+    } else {
       return Icon(Icons.stop, color: Theme.of(context).colorScheme.error);
+    }
   }
 
   const PveNodeOverview({super.key, required this.nodeID});