1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-07-28 16:21:54 -04:00
parent a6c9cc632b
commit d6b60682be
10 changed files with 76 additions and 53 deletions

View file

@ -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) {