update components
This commit is contained in:
parent
a6c9cc632b
commit
d6b60682be
10 changed files with 76 additions and 53 deletions
|
@ -802,6 +802,13 @@
|
|||
});
|
||||
}
|
||||
|
||||
if (item.SeriesId) {
|
||||
atts.push({
|
||||
name: 'seriesid',
|
||||
value: item.SeriesId
|
||||
});
|
||||
}
|
||||
|
||||
if (options.collectionId) {
|
||||
atts.push({
|
||||
name: 'collectionid',
|
||||
|
|
|
@ -352,7 +352,7 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
|
|||
|
||||
promise = ApiClient.getCurrentUser().then(function (user) {
|
||||
|
||||
if (!user.Configuration.EnableNextEpisodeAutoPlay) {
|
||||
if (!user.Configuration.EnableNextEpisodeAutoPlay || !firstItem.SeriesId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -416,10 +416,16 @@ var Dashboard = {
|
|||
|
||||
restartServer: function () {
|
||||
|
||||
var apiClient = window.ApiClient;
|
||||
|
||||
if (!apiClient) {
|
||||
return;
|
||||
}
|
||||
|
||||
Dashboard.suppressAjaxErrors = true;
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.restartServer().then(function () {
|
||||
apiClient.restartServer().then(function () {
|
||||
|
||||
setTimeout(function () {
|
||||
Dashboard.reloadPageWhenServerAvailable();
|
||||
|
@ -432,8 +438,14 @@ var Dashboard = {
|
|||
|
||||
reloadPageWhenServerAvailable: function (retryCount) {
|
||||
|
||||
var apiClient = window.ApiClient;
|
||||
|
||||
if (!apiClient) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't use apiclient method because we don't want it reporting authentication under the old version
|
||||
ApiClient.getJSON(ApiClient.getUrl("System/Info")).then(function (info) {
|
||||
apiClient.getJSON(apiClient.getUrl("System/Info")).then(function (info) {
|
||||
|
||||
// If this is back to false, the restart completed
|
||||
if (!info.HasPendingRestart) {
|
||||
|
@ -468,7 +480,7 @@ var Dashboard = {
|
|||
|
||||
getPluginSecurityInfo: function () {
|
||||
|
||||
var apiClient = ApiClient;
|
||||
var apiClient = window.ApiClient;
|
||||
|
||||
if (!apiClient) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue