[Kimchi-devel] [PATCH] [Kimchi] Added cursor for tasks in progress

sguimaraes943 at gmail.com sguimaraes943 at gmail.com
Tue Jul 19 13:36:43 UTC 2016


From: Samuel Guimarães <sguimaraes943 at gmail.com>

Signed-off-by: Samuel Guimarães <sguimaraes943 at gmail.com>
---
 ui/js/src/kimchi.api.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index ce93d7d..740d922 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -532,18 +532,22 @@ var kimchi = {
             var taskStatus = result['status'];
             switch(taskStatus) {
             case 'running':
+                $('html').addClass('in-progress');
                 progress && progress(result);
                 setTimeout(function() {
                     kimchi.trackTask(taskID, suc, err, progress);
                 }, 2000);
                 break;
             case 'finished':
+                $('html').removeClass('in-progress');
                 suc && suc(result);
                 break;
             case 'failed':
+                $('html').removeClass('in-progress');
                 err && err(result);
                 break;
             default:
+                $('html').removeClass('in-progress');
                 break;
             }
         };
-- 
1.9.3




More information about the Kimchi-devel mailing list