add progress message tooltip

This commit is contained in:
Girish Ramakrishnan
2016-06-14 14:26:46 -07:00
parent f53c0b7700
commit f8b402a48e
3 changed files with 5 additions and 1 deletions

View File

@@ -760,6 +760,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
var progress = parseInt(installationProgress.split(',')[0], 10);
if (isNaN(progress)) progress = 0;
app.progress = progress;
app.message = installationProgress.replace(/.*, /,'');
return app;
};

View File

@@ -304,7 +304,7 @@
<div class="row animateMeOpacity ng-hide" ng-show="installedApps.length > 0">
<div class="col-sm-1 grid-item" ng-repeat="app in installedApps | orderBy:'location'">
<div style="background-color: white;" class="highlight grid-item-content">
<div style="background-color: white;" class="highlight grid-item-content" data-toggle="tooltip" data-placement="bottom" title="{{ app.message }}">
<a ng-href="{{app | applicationLink}}" ng-click="(app | installError) === true && showError(app)" target="_blank">
<div class="grid-item-top">
<div class="row">

View File

@@ -477,4 +477,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$(this).find("[autofocus]:first").focus();
});
});
// setup tooltips (opt-in)
$('[data-toggle="tooltip"]').tooltip();
}]);