Skip to content

Commit 354a10b

Browse files
committed
Cosmetic UI Fix: Properly strip hostnames in system upgrade menus.
1 parent 43d6957 commit 354a10b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

htdocs/js/pages/Base.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,7 @@ Page.Base = class Base extends Page {
19981998
}
19991999
).map(
20002000
function(server) {
2001-
var title = server.title || server.hostname;
2001+
var title = server.title || app.formatHostname(server.hostname);
20022002
if (inc_versions) title += ' (v' + server.info.satellite + ')';
20032003
return merge_objects( server, { title } );
20042004
}

htdocs/js/pages/admin/System.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ Page.System = class System extends Page.PageUtils {
777777
var masters = sort_by( Object.values(app.masters), 'id' ).filter( function(host) { return !!host.online; } ).map( function(host) {
778778
return {
779779
id: host.id,
780-
title: host.id + ' (v' + host.version + ')',
780+
title: app.formatHostname(host.id) + ' (v' + host.version + ')',
781781
icon: host.master ? 'database' : 'database-outline'
782782
};
783783
} );

0 commit comments

Comments
 (0)