From c97732d1be4a8c9f8a98cd747640220ad65857af Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Fri, 13 Dec 2024 10:47:15 -0500 Subject: [PATCH] Show CA "Needs attention" (#201) * Do not save site if there are errors * Show CA error correctly * Revert "Do not save site if there are errors" This reverts commit 3cea52a15f0eae3e4c040585e6010bba6b1edccc. --- lib/screens/siteConfig/SiteConfigScreen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/screens/siteConfig/SiteConfigScreen.dart b/lib/screens/siteConfig/SiteConfigScreen.dart index 5c187ec..8e8a346 100644 --- a/lib/screens/siteConfig/SiteConfigScreen.dart +++ b/lib/screens/siteConfig/SiteConfigScreen.dart @@ -156,7 +156,7 @@ class _SiteConfigScreenState extends State { final certError = site.certInfo == null || site.certInfo!.validity == null || !site.certInfo!.validity!.valid; var caError = false; if (!site.managed) { - var caError = site.ca.length == 0; + caError = site.ca.length == 0; if (!caError) { site.ca.forEach((ca) { if (ca.validity == null || !ca.validity!.valid) {