From 02dcbb9a52fb3f851b4328e8cccc04ce35e2ac58 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 31 Jul 2019 11:38:28 -0700 Subject: [PATCH] Add some comments on the various labels --- src/js/client.js | 2 +- src/js/index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/client.js b/src/js/client.js index 0d2a464d2..22dc30aba 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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; diff --git a/src/js/index.js b/src/js/index.js index 38aa005f4..7fbd5f6b9 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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) {