`;
html += '
';
}
diff --git a/src/controllers/session/login/index.js b/src/controllers/session/login/index.js
index 24b3a983eb..ef7e1e5c62 100644
--- a/src/controllers/session/login/index.js
+++ b/src/controllers/session/login/index.js
@@ -13,6 +13,7 @@ import ServerConnections from '../../../components/ServerConnections';
import toast from '../../../components/toast/toast';
import dialogHelper from '../../../components/dialogHelper/dialogHelper';
import baseAlert from '../../../components/alert';
+import cardBuilder from '../../../components/cardbuilder/cardBuilder';
/* eslint-disable indent */
@@ -131,29 +132,6 @@ import baseAlert from '../../../components/alert';
}
}
- const metroColors = ['#6FBD45', '#4BB3DD', '#4164A5', '#E12026', '#800080', '#E1B222', '#008040', '#0094FF', '#FF00C7', '#FF870F', '#7F0037'];
-
- function getRandomMetroColor() {
- const index = Math.floor(Math.random() * (metroColors.length - 1));
- return metroColors[index];
- }
-
- function getMetroColor(str) {
- if (str) {
- const character = String(str.substr(0, 1).charCodeAt());
- let sum = 0;
-
- for (let i = 0; i < character.length; i++) {
- sum += parseInt(character.charAt(i));
- }
-
- const index = String(sum).substr(-1);
- return metroColors[index];
- }
-
- return getRandomMetroColor();
- }
-
function loadUserList(context, apiClient, users) {
let html = '';
@@ -176,7 +154,7 @@ import baseAlert from '../../../components/alert';
html += '
';
html += '
';
html += '
';
- html += '
';
+ html += `
`;
let imgUrl;
if (user.PrimaryImageTag) {
@@ -185,11 +163,12 @@ import baseAlert from '../../../components/alert';
tag: user.PrimaryImageTag,
type: 'Primary'
});
+
html += '
";
} else {
- const background = getMetroColor(user.Id);
- imgUrl = 'assets/img/avatar.png';
- html += '
';
+ html += `
`;
+ html += '';
+ html += `
`;
}
html += '
';
diff --git a/src/controllers/session/selectServer/index.js b/src/controllers/session/selectServer/index.js
index 32674a8062..6c6e4189a5 100644
--- a/src/controllers/session/selectServer/index.js
+++ b/src/controllers/session/selectServer/index.js
@@ -17,6 +17,7 @@ import '../../../elements/emby-button/emby-button';
import Dashboard from '../../../scripts/clientUtils';
import ServerConnections from '../../../components/ServerConnections';
import alert from '../../../components/alert';
+import cardBuilder from '../../../components/cardbuilder/cardBuilder';
/* eslint-disable indent */
@@ -64,7 +65,7 @@ import alert from '../../../components/alert';
cardContainer += '
';
cardContainer += '
';
cardContainer += '
';
- cardContainer += '
';
+ cardContainer += `
`;
cardContainer += cardImageContainer;
cardContainer += '
';
cardContainer += '
';