make delete/restore button in viewer be the right colour, and go back to / when the success for the delete or restore finishes

This commit is contained in:
2025-10-10 23:13:03 +11:00
parent fa2197adbe
commit b51d9e1776
3 changed files with 28 additions and 17 deletions

13
TODO
View File

@@ -1,17 +1,6 @@
###
# 4 TEST everything (don't forget keybindings,e.g. delete)
# -- go into viewer code from a files_rbp - had red bin, bot green on viewer.
#
# consider this:
$('#viewer_bin use').attr('fill', 'var(--bs-success)'); $('#viewer_del').removeClass('btn-outline-danger').addClass('btn-outline-success')
$('#viewer_bin').hover(
function() {
$('use', this).attr('fill', 'white');
},
function() {
$('use', this).attr('fill', 'var(--bs-success)');
}
);
# - from viewer, if I del, then it stays on this view, should not (OR at least)
#
# 5 think I killed pa_job_manager without passing an eid to a transform job, shouldn't crash
# SHOULD JUST get AI to help clean-up and write defensive code here...