mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
restored audio
This commit is contained in:
parent
540b588b7f
commit
9943bc1374
1 changed files with 31 additions and 8 deletions
|
@ -570,13 +570,13 @@ var Dashboard = {
|
||||||
var promise;
|
var promise;
|
||||||
|
|
||||||
if (path === "Network") {
|
if (path === "Network") {
|
||||||
promise = ApiClient.getNetworkComputers();
|
promise = ApiClient.getNetworkComputers();
|
||||||
}
|
}
|
||||||
else if (path) {
|
else if (path) {
|
||||||
promise = ApiClient.getDirectoryContents(path, { includeDirectories: true });
|
promise = ApiClient.getDirectoryContents(path, { includeDirectories: true });
|
||||||
} else {
|
} else {
|
||||||
promise = ApiClient.getDrives();
|
promise = ApiClient.getDrives();
|
||||||
}
|
}
|
||||||
|
|
||||||
promise.done(function (folders) {
|
promise.done(function (folders) {
|
||||||
|
|
||||||
|
@ -633,7 +633,30 @@ var Dashboard = {
|
||||||
getPluginSecurityInfo: function () {
|
getPluginSecurityInfo: function () {
|
||||||
|
|
||||||
if (!Dashboard.getPluginSecurityInfoPromise) {
|
if (!Dashboard.getPluginSecurityInfoPromise) {
|
||||||
Dashboard.getPluginSecurityInfoPromise = ApiClient.getPluginSecurityInfo();
|
|
||||||
|
var deferred = $.Deferred();
|
||||||
|
|
||||||
|
// Don't let this blow up the dashboard when it fails
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: ApiClient.getUrl("Plugins/SecurityInfo"),
|
||||||
|
dataType: 'json',
|
||||||
|
|
||||||
|
error: function () {
|
||||||
|
// Don't show normal dashboard errors
|
||||||
|
}
|
||||||
|
|
||||||
|
}).done(function (result) {
|
||||||
|
deferred.resolveWith(null, [[result]]);
|
||||||
|
}).fail(function () {
|
||||||
|
|
||||||
|
console.log('Error getting plugin security info');
|
||||||
|
|
||||||
|
deferred.resolveWith(null, [[{ IsMBSupporter: false }]]);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
Dashboard.getPluginSecurityInfoPromise = deferred;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Dashboard.getPluginSecurityInfoPromise;
|
return Dashboard.getPluginSecurityInfoPromise;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue