diff --git a/dashboard-ui/scripts/autoorganizelog.js b/dashboard-ui/scripts/autoorganizelog.js index 8f2ab1a013..33e0944a88 100644 --- a/dashboard-ui/scripts/autoorganizelog.js +++ b/dashboard-ui/scripts/autoorganizelog.js @@ -30,7 +30,7 @@ })[0]; - var message = 'The following file will be deleted:

' + item.OriginalPath + '

Are you sure you wish to proceed?

'; + var message = 'The following file will be deleted:

' + item.OriginalPath + '

Are you sure you wish to proceed?

'; Dashboard.confirm(message, "Delete File", function (confirmResult) { @@ -79,7 +79,7 @@ $('#txtEndingEpisode', popup).val(item.ExtractedEndingEpisodeNumber); $('#hfResultId', popup).val(item.Id); - + if (item.ExtractedName) { $('#fldRememberCorrection', popup).hide(); } else { @@ -115,7 +115,15 @@ return; } - var message = 'The following file will be moved from:

' + item.OriginalPath + '

to:

' + item.TargetPath + '

Are you sure you wish to proceed?

'; + var message = 'The following file will be moved from:

' + item.OriginalPath + '

to:

' + item.TargetPath + '

'; + + if (item.DuplicatePaths.length) { + message += '

In addition the following dupliates will be deleted:

'; + + message += '

' + item.DuplicatePaths.join('
') + '

'; + } + + message += '

Are you sure you wish to proceed?

'; Dashboard.confirm(message, "Organize File", function (confirmResult) { diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 5055941c1e..e8ed65f3b7 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -74,7 +74,7 @@ html += '' + (view == 'tv' ? selectedHtml : '') + 'TV'; } - if (liveTvInfo.ActiveServiceName) { + if (liveTvInfo.EnabledUsers.indexOf(user.Id) != -1) { html += '' + (view == 'livetv' ? selectedHtml : '') + 'Live TV'; } @@ -146,7 +146,7 @@ ]); } - if (liveTvInfo.ActiveServiceName) { + if (liveTvInfo.EnabledUsers.indexOf(Dashboard.getCurrentUserId()) != -1) { html += getCollapsibleHtml('Live TV', [ { text: 'Suggested', href: 'livetvsuggested.html' }, @@ -223,7 +223,7 @@ var link = links[i]; var href = selectedIndex == i ? '#' : link.href; - + html += '
  • ' + link.text + '
  • '; } diff --git a/dashboard-ui/scripts/useredit.js b/dashboard-ui/scripts/useredit.js index 07749682d3..3bc3686722 100644 --- a/dashboard-ui/scripts/useredit.js +++ b/dashboard-ui/scripts/useredit.js @@ -25,6 +25,7 @@ $('#chkEnableMediaPlayback', page).checked(user.Configuration.EnableMediaPlayback || false).checkboxradio("refresh"); $('#chkManageLiveTv', page).checked(user.Configuration.EnableLiveTvManagement || false).checkboxradio("refresh"); + $('#chkEnableLiveTvAccess', page).checked(user.Configuration.EnableLiveTvAccess || false).checkboxradio("refresh"); Dashboard.hideLoadingMsg(); } @@ -57,6 +58,7 @@ user.Configuration.EnableRemoteControlOfOtherUsers = $('#chkEnableRemoteControlOtherUsers', page).checked(); user.Configuration.EnableLiveTvManagement = $('#chkManageLiveTv', page).checked(); user.Configuration.EnableMediaPlayback = $('#chkEnableMediaPlayback', page).checked(); + user.Configuration.EnableLiveTvAccess = $('#chkEnableLiveTvAccess', page).checked(); var userId = getParameterByName("userId"); diff --git a/dashboard-ui/useredit.html b/dashboard-ui/useredit.html index ec145922f2..0b627558a2 100644 --- a/dashboard-ui/useredit.html +++ b/dashboard-ui/useredit.html @@ -33,12 +33,16 @@
    - - + +
    - + +
    +
    + +