mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3247 from thornbill/remove-network-library
Remove network device option from add library dialog
This commit is contained in:
commit
a9dd511bfe
2 changed files with 4 additions and 13 deletions
|
@ -32,15 +32,11 @@ function refreshDirectoryBrowser(page, path, fileOptions, updatePathOnError) {
|
||||||
|
|
||||||
const promises = [];
|
const promises = [];
|
||||||
|
|
||||||
if (path === 'Network') {
|
if (path) {
|
||||||
promises.push(ApiClient.getNetworkDevices());
|
promises.push(ApiClient.getDirectoryContents(path, fileOptions));
|
||||||
|
promises.push(ApiClient.getParentPath(path));
|
||||||
} else {
|
} else {
|
||||||
if (path) {
|
promises.push(ApiClient.getDrives());
|
||||||
promises.push(ApiClient.getDirectoryContents(path, fileOptions));
|
|
||||||
promises.push(ApiClient.getParentPath(path));
|
|
||||||
} else {
|
|
||||||
promises.push(ApiClient.getDrives());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Promise.all(promises).then(
|
Promise.all(promises).then(
|
||||||
|
@ -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();
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|
|
@ -85,7 +85,6 @@
|
||||||
"ButtonLibraryAccess": "Library access",
|
"ButtonLibraryAccess": "Library access",
|
||||||
"ButtonManualLogin": "Manual Login",
|
"ButtonManualLogin": "Manual Login",
|
||||||
"ButtonMore": "More",
|
"ButtonMore": "More",
|
||||||
"ButtonNetwork": "Network",
|
|
||||||
"ButtonNextTrack": "Next track",
|
"ButtonNextTrack": "Next track",
|
||||||
"ButtonOk": "Ok",
|
"ButtonOk": "Ok",
|
||||||
"ButtonOpen": "Open",
|
"ButtonOpen": "Open",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue