diff --git a/dashboard-ui/scripts/indexpage.js b/dashboard-ui/scripts/indexpage.js index 67c452d02f..0c51e7016b 100644 --- a/dashboard-ui/scripts/indexpage.js +++ b/dashboard-ui/scripts/indexpage.js @@ -298,7 +298,7 @@ html += '
'; html += LibraryBrowser.getPosterViewHtml({ items: result.Items, - preferBackdrop: true, + preferThumb: true, shape: 'backdrop', overlayText: screenWidth >= 600, showTitle: true, diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 268e63fe92..bdeaf38326 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1225,6 +1225,7 @@ var defaultActionAttribute = options.defaultAction ? (' data-action="' + options.defaultAction + '"') : ''; + // card html += ''; var style = ""; @@ -1322,6 +1323,7 @@ // cardBox html += '
'; + // card html += ""; } diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 5d4ad3d1f8..80be69ad3f 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -46,7 +46,7 @@ var url = user.imageUrl; if (user.supportsImageParams) { - url += "height=" + userButtonHeight; + url += "&height=" + userButtonHeight; } html += ''; diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 5b7402ac81..623b4e0fdb 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -582,7 +582,7 @@ var Dashboard = { var url = user.imageUrl; if (user.supportsImageParams) { - url += "width=" + 28; + url += "&width=" + 28; } html += ''; diff --git a/dashboard-ui/thirdparty/apiclient/connectionmanager.js b/dashboard-ui/thirdparty/apiclient/connectionmanager.js index ede8c34ee7..46b3037610 100644 --- a/dashboard-ui/thirdparty/apiclient/connectionmanager.js +++ b/dashboard-ui/thirdparty/apiclient/connectionmanager.js @@ -388,7 +388,7 @@ url: connectUser.ImageUrl }; } - if (localUser.PrimaryImageTag) { + if (localUser && localUser.PrimaryImageTag) { var apiClient = self.getApiClient(localUser); @@ -399,13 +399,13 @@ return { url: url, - supportsImageParams: true + supportsParams: true }; } return { url: null, - supportsImageParams: false + supportsParams: false }; } @@ -422,7 +422,7 @@ deferred.resolveWith(null, [ { localUser: localUser, - name: connectUser ? connectUser.Name : localUser.Name, + name: connectUser ? connectUser.Name : (localUser ? localUser.Name : null), canManageServer: localUser && localUser.Policy.IsAdministrator, imageUrl: image.url, supportsImageParams: image.supportsParams @@ -509,7 +509,7 @@ function logoutOfServer(apiClient) { - var serverInfo = apiClient.serverInfo(); + var serverInfo = apiClient.serverInfo() || {}; var logoutInfo = { serverId: serverInfo.Id