From 4c246b822a5d85ed6c569b6e700ff298e69ab106 Mon Sep 17 00:00:00 2001 From: David Reyna Date: Sat, 2 Sep 2017 22:24:04 -0700 Subject: [PATCH] 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: 407bb26eebe4ec8a68547fd98b0a15cb18895d9a) Signed-off-by: David Reyna Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/projectconf.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html index fcf6df2bf8..0e9712b39e 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(); } });