mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add more device options
This commit is contained in:
parent
9ae5d347c1
commit
029b0d464f
6 changed files with 76 additions and 6 deletions
1
dashboard-ui/scripts/device.js
Normal file
1
dashboard-ui/scripts/device.js
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
@ -34,12 +34,18 @@
|
|||
var deviceHtml = '';
|
||||
deviceHtml += '<li>';
|
||||
|
||||
deviceHtml += '<a href="#">';
|
||||
deviceHtml += '<a href="device.html?id=' + d.Id + '">';
|
||||
|
||||
deviceHtml += '<h3>';
|
||||
deviceHtml += d.Name;
|
||||
deviceHtml += '</h3>';
|
||||
|
||||
if (d.AppName) {
|
||||
deviceHtml += '<p style="color:blue;">';
|
||||
deviceHtml += d.AppName;
|
||||
deviceHtml += '</p>';
|
||||
}
|
||||
|
||||
if (d.LastUserName) {
|
||||
deviceHtml += '<p style="color:green;">';
|
||||
deviceHtml += Globalize.translate('DeviceLastUsedByUserName', d.LastUserName);
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
$('#txtUploadPath', page).val(config.CameraUploadPath || '');
|
||||
|
||||
$('#chkSubfolder', page).checked(config.EnableCameraUploadSubfolders).checkboxradio('refresh');
|
||||
|
||||
loadDeviceList(page, devices, config);
|
||||
}
|
||||
|
||||
|
@ -34,6 +36,11 @@
|
|||
|
||||
deviceHtml += '<label for="' + id + '">';
|
||||
deviceHtml += d.Name;
|
||||
|
||||
if (d.AppName) {
|
||||
deviceHtml += '<br/><span>' + d.AppName + '</span>';
|
||||
}
|
||||
|
||||
deviceHtml += '</label>';
|
||||
|
||||
var isChecked = config.EnabledCameraUploadDevices.indexOf(d.Id) != -1;
|
||||
|
@ -88,6 +95,8 @@
|
|||
|
||||
});
|
||||
|
||||
config.EnableCameraUploadSubfolders = $('#chkSubfolder', page).checked();
|
||||
|
||||
ApiClient.updateNamedConfiguration("devices", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue