Skip to content

Commit

Permalink
YDA-6132 - Multi-select for copy, move, and delete displays the progr…
Browse files Browse the repository at this point in the history
…ess of each of the selected items.
  • Loading branch information
kaur16 committed Feb 5, 2025
1 parent c48a79d commit bc9d3d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions research/static/research/js/dlgFileBrowseOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ $(document).ready(function () {
$('#multi-select-delete .collection').text($('.system-metadata-icon').attr('data-folder'))
$('#mutli-select-progress').attr('data-action', 'delete')
$('#multi-select-delete').modal('show')
$('#mutli-select-progress .dlg-multi-action-button').hide()
})
// handling of breadcrumbs
$('body').on('click', '.browse-select', function (e) {
Expand Down Expand Up @@ -113,7 +114,7 @@ $(document).ready(function () {
$('.multi-select-table tbody').html('')
$("input:checkbox[name='multiSelect[]']:checked").each(function (index) {
const type = $(this).attr('data-type')
const name = $(this).attr('data-name')
const name = DOMPurify.sanitize($(this).attr('data-name'))
let icon
if (type === 'coll') {
icon = '<i class="fa-regular fa-folder"></i>'
Expand All @@ -126,11 +127,12 @@ $(document).ready(function () {
<td class="item-progress">-</td>
</tr>
`
$('.multi-select-table tbody').append(DOMPurify.sanitize(row))
$('.multi-select-table tbody').append(row)
})

if (action === 'multiple-delete') {
$('#multi-select-delete').modal('hide')
$('.dlg-multi-action-button').hide()
} else {
$('#dlg-file-browse-operations').modal('hide')
}
Expand Down

0 comments on commit bc9d3d2

Please sign in to comment.