re-use existing progress and message properties
now, when we go back to the app grid, it reflects immediately
This commit is contained in:
@@ -1793,6 +1793,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
if (task) {
|
||||
app.progress = task.percent;
|
||||
app.message = task.message;
|
||||
app.taskMinutesActive = moment.duration(moment.utc().diff(moment.utc(task.creationTime))).asMinutes();
|
||||
} else {
|
||||
app.progress = 0;
|
||||
app.message = '';
|
||||
app.taskMinutesActive = 0;
|
||||
}
|
||||
|
||||
that._updateAppCache(app);
|
||||
|
||||
Reference in New Issue
Block a user