mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
Remove network device option from add library dialog
This commit is contained in:
parent
f88fb7045a
commit
d8965faeae
@ -32,16 +32,12 @@ function refreshDirectoryBrowser(page, path, fileOptions, updatePathOnError) {
|
|||||||
|
|
||||||
const promises = [];
|
const promises = [];
|
||||||
|
|
||||||
if (path === 'Network') {
|
|
||||||
promises.push(ApiClient.getNetworkDevices());
|
|
||||||
} else {
|
|
||||||
if (path) {
|
if (path) {
|
||||||
promises.push(ApiClient.getDirectoryContents(path, fileOptions));
|
promises.push(ApiClient.getDirectoryContents(path, fileOptions));
|
||||||
promises.push(ApiClient.getParentPath(path));
|
promises.push(ApiClient.getParentPath(path));
|
||||||
} else {
|
} else {
|
||||||
promises.push(ApiClient.getDrives());
|
promises.push(ApiClient.getDrives());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Promise.all(promises).then(
|
Promise.all(promises).then(
|
||||||
responses => {
|
responses => {
|
||||||
@ -61,10 +57,6 @@ function refreshDirectoryBrowser(page, path, fileOptions, updatePathOnError) {
|
|||||||
html += getItem(cssClass, folder.Type, folder.Path, folder.Name);
|
html += getItem(cssClass, folder.Type, folder.Path, folder.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!path) {
|
|
||||||
html += getItem('lnkPath lnkDirectory', '', 'Network', globalize.translate('ButtonNetwork'));
|
|
||||||
}
|
|
||||||
|
|
||||||
page.querySelector('.results').innerHTML = html;
|
page.querySelector('.results').innerHTML = html;
|
||||||
loading.hide();
|
loading.hide();
|
||||||
}, () => {
|
}, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user