From: David Reyna Date: Sun, 3 Sep 2017 05:24:04 +0000 (-0700) Subject: bitbake: toaster: display error when the fstype select is empty X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ec9de893cd782c680b1498d8368ddc129efa28d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toaster: display error when the fstype select is empty There must be at least one FSTYPE selected in the Toaster bitbake variable editor page. When the user deselects all the "Save" button gets disabled, but the error message is missing. [YOCTO #8126] (Bitbake rev: 193577655b7491126ca5fa91fa76d79329e900c2) Signed-off-by: David Reyna Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html index fcf6df2bf85..0e9712b39e6 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectconf.html +++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html @@ -63,6 +63,7 @@ +
@@ -716,8 +717,10 @@ $(document).ready(function() { } if ($('#new-imagefs_types').val().length === 0) { $("#apply-change-image_fstypes").prop("disabled", true); + $('#fstypes-error-message').show(); } else { $("#apply-change-image_fstypes").prop("disabled", false); + $('#fstypes-error-message').hide(); } });