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 3cea52a15f
.
This commit is contained in:
parent
f74cda8121
commit
c97732d1be
|
@ -156,7 +156,7 @@ class _SiteConfigScreenState extends State<SiteConfigScreen> {
|
||||||
final certError = site.certInfo == null || site.certInfo!.validity == null || !site.certInfo!.validity!.valid;
|
final certError = site.certInfo == null || site.certInfo!.validity == null || !site.certInfo!.validity!.valid;
|
||||||
var caError = false;
|
var caError = false;
|
||||||
if (!site.managed) {
|
if (!site.managed) {
|
||||||
var caError = site.ca.length == 0;
|
caError = site.ca.length == 0;
|
||||||
if (!caError) {
|
if (!caError) {
|
||||||
site.ca.forEach((ca) {
|
site.ca.forEach((ca) {
|
||||||
if (ca.validity == null || !ca.validity!.valid) {
|
if (ca.validity == null || !ca.validity!.valid) {
|
||||||
|
|
Loading…
Reference in New Issue