Add some comments on the various labels

This commit is contained in:
Girish Ramakrishnan
2019-07-31 11:38:28 -07:00
parent 0c6a6e4173
commit 02dcbb9a52
2 changed files with 4 additions and 1 deletions

View File

@@ -1389,7 +1389,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
// extract progress percentage
var installationProgress = app.installationProgress || '';
var progress = parseInt(installationProgress.split(',')[0], 10);
// Unfortunatelly some errors are not actual progress messages, but still have a number in fron like a http status code
// Unfortunately some errors are not actual progress messages, but still have a number in fron like a http status code
if (isNaN(progress) || progress > 100) {
app.progress = 0;
app.message = installationProgress;

View File

@@ -204,6 +204,7 @@ app.filter('activeOAuthClients', function () {
};
});
// this appears when an item in app grid is clicked
app.filter('prettyAppMessage', function () {
return function (message) {
if (message === 'ETRYAGAIN') return 'The DNS record for this location is not setup correctly. Please verify your DNS settings and repair this app.';
@@ -212,6 +213,7 @@ app.filter('prettyAppMessage', function () {
};
});
// this appears as tool tip in app grid
app.filter('shortAppMessage', function () {
return function (message) {
if (message === 'ETRYAGAIN') return 'DNS record not setup correctly';
@@ -267,6 +269,7 @@ app.filter('installationActive', function () {
};
});
// this appears in the app grid
app.filter('installationStateLabel', function() {
// for better DNS errors
function detailedError(app) {