diff options
| author | Elliot Smith <elliot.smith@intel.com> | 2016-07-15 15:20:36 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-11 00:09:27 +0100 |
| commit | 01c8496d47eb37a44442e79a7b071321599d7c6e (patch) | |
| tree | d99258b6e3bba016815a1b0a0e1e70d5872babe3 /bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html | |
| parent | 6172fb1923a34b9ba286debcb89653a347c0f5e0 (diff) | |
| download | poky-01c8496d47eb37a44442e79a7b071321599d7c6e.tar.gz | |
bitbake: toaster: show loading spinner after creating custom image
Creating a custom image through the "New custom image" dialog
can sometimes result in a long pause between pressing the button
to create the image, and being transferred to the page showing
details of its content. This can make it appear as though pressing
the button had no effect.
To prevent this from happening, disable the button and text box
in the new custom image dialog after the "Create image" button is
pressed. Also show a loading spinner and "loading..." text on
the button to make it clear that the application is still responding.
[YOCTO #9475]
(Bitbake rev: dd8bede91e08c0b64b949ca98c74e6144da88fd1)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html b/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html index 5caa68392c..d448d3afc1 100644 --- a/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html +++ b/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html | |||
| @@ -48,7 +48,12 @@ | |||
| 48 | </div> | 48 | </div> |
| 49 | 49 | ||
| 50 | <div class="modal-footer"> | 50 | <div class="modal-footer"> |
| 51 | <button id="create-new-custom-image-btn" class="btn btn-primary btn-lg" data-original-title="" title="" disabled>Create custom image</button> | 51 | <button id="create-new-custom-image-btn" class="btn btn-primary btn-large" disabled> |
| 52 | <span data-role="submit-state">Create custom image</span> | ||
| 53 | <span data-role="loading-state" style="display:none"> | ||
| 54 | <i class="fa-pulse icon-spinner"></i> Creating custom image... | ||
| 55 | </span> | ||
| 56 | </button> | ||
| 52 | </div> | 57 | </div> |
| 53 | </div> | 58 | </div> |
| 54 | </div> | 59 | </div> |
