From cc226b552f3e021d013950da347249297fbc1987 Mon Sep 17 00:00:00 2001 From: Luca Di Leo Date: Mon, 24 Jan 2022 02:04:04 -0800 Subject: [PATCH] Save configuration is now disabled when no password is entered --- coreplugins/dronedb/templates/app.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreplugins/dronedb/templates/app.html b/coreplugins/dronedb/templates/app.html index 76c69399..4f171d49 100644 --- a/coreplugins/dronedb/templates/app.html +++ b/coreplugins/dronedb/templates/app.html @@ -11,7 +11,7 @@ On this screen, you can provide the registry url and credentials to access Drone {% csrf_token %} {% include "app/plugins/templates/form.html" %} - + @@ -27,7 +27,7 @@ On this screen, you can provide the registry url and credentials to access Drone var alert = $("#alert-result").hide(); if (timeout != null) clearTimeout(timeout); - $("#btnVerify").prop('disabled', + $("#btnVerify,button[type=submit]").prop('disabled', $("input[name=registry_url]").val().length == 0 || $("input[name=username]").val().length == 0 || $("input[name=password]").val().length == 0);