redis: show app fqdn instead of location

This commit is contained in:
Girish Ramakrishnan
2020-05-07 09:31:31 -07:00
parent aa9317069a
commit 2092ae22dc

View File

@@ -278,8 +278,11 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
if (name.indexOf('redis') === 0) {
isRedis = true;
var app = Client.getCachedAppSync(name.slice('redis:'.length));
displayName = 'redis for ';
if (app) displayName += app.label || app.location || app.fqdn;
if (app) {
displayName = 'Redis for ' + (app.label || app.fqdn);
} else {
displayName = 'Redis for unknown app';
}
}
return {