Remove network device option from add library dialog

This commit is contained in:
Bill Thornton 2021-12-29 16:28:21 -05:00
parent f88fb7045a
commit d8965faeae

View File

@ -32,16 +32,12 @@ function refreshDirectoryBrowser(page, path, fileOptions, updatePathOnError) {
const promises = [];
if (path === 'Network') {
promises.push(ApiClient.getNetworkDevices());
} else {
if (path) {
promises.push(ApiClient.getDirectoryContents(path, fileOptions));
promises.push(ApiClient.getParentPath(path));
} else {
promises.push(ApiClient.getDrives());
}
}
Promise.all(promises).then(
responses => {
@ -61,10 +57,6 @@ function refreshDirectoryBrowser(page, path, fileOptions, updatePathOnError) {
html += getItem(cssClass, folder.Type, folder.Path, folder.Name);
}
if (!path) {
html += getItem('lnkPath lnkDirectory', '', 'Network', globalize.translate('ButtonNetwork'));
}
page.querySelector('.results').innerHTML = html;
loading.hide();
}, () => {