[oe-commits] [bitbake] 04/10: toaster: display error when the fstype select is empty

git at git.openembedded.org git at git.openembedded.org
Thu Sep 21 15:56:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch 1.34
in repository bitbake.

commit 407bb26eebe4ec8a68547fd98b0a15cb18895d9a
Author: David Reyna <David.Reyna at windriver.com>
AuthorDate: Sat Sep 2 22:24:04 2017 -0700

    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]
    
    Signed-off-by: David Reyna <David.Reyna at windriver.com>
    Signed-off-by: David Reyna <David.Reyna at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/toastergui/templates/projectconf.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/toaster/toastergui/templates/projectconf.html b/lib/toaster/toastergui/templates/projectconf.html
index fcf6df2..0e9712b 100644
--- a/lib/toaster/toastergui/templates/projectconf.html
+++ b/lib/toaster/toastergui/templates/projectconf.html
@@ -63,6 +63,7 @@
         <button id="cancel-change-image_fstypes" type="button" class="btn btn-link">Cancel</button>
       </div>
       <p class="help-block text-danger" style="display:none;" id="hintError-image-fs_type">A valid image type cannot include underscores</p>
+      <p class="help-block text-danger" style="display:none;" id="fstypes-error-message">You must select at least one image type</p>
       <label>Or choose from known image types:</label>
       <input id="filter-image_fstypes" type="text" placeholder="Search image types" class="form-control">
       <div id="all-image_fstypes" class="scrolling"></div>
@@ -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();
     }
   });
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list