diff --git a/maloja/apis/native_v1.py b/maloja/apis/native_v1.py index 4554d49..2b17f17 100644 --- a/maloja/apis/native_v1.py +++ b/maloja/apis/native_v1.py @@ -634,7 +634,8 @@ def delete_scrobble(timestamp): """Internal Use Only""" result = database.remove_scrobble(timestamp) return { - "status":"success" + "status":"success", + "desc":f"Scrobble was deleted!" } @@ -687,10 +688,11 @@ def reparse_scrobble(timestamp): result = database.reparse_scrobble(timestamp) if result: return { - "status":"success" + "status":"success", + "desc":f"Scrobble was reparsed!" } else: return { "status":"no-operation", - "desc":"No action was taken." + "desc":"The scrobble was not changed." } diff --git a/maloja/web/static/css/maloja.css b/maloja/web/static/css/maloja.css index af19960..f2781fc 100644 --- a/maloja/web/static/css/maloja.css +++ b/maloja/web/static/css/maloja.css @@ -655,10 +655,10 @@ table.list tr td.scrobble_action_area.active span.scrobble_action_type.active sp display: none; } -table.list tr.removed td.scrobble_action_area span.scrobble_action_type span.confirmactions { +table.list tr.removed td.scrobble_action_area span.scrobble_action_type { display: none; } -table.list tr.removed td.scrobble_action_area span.scrobble_action_type span.initializeactions { +table.list tr.removed td.scrobble_action_area span.scrobble_action_type { display: none; } table.list tr.removed { diff --git a/maloja/web/static/js/edit.js b/maloja/web/static/js/edit.js index 78e4b47..08e2d1f 100644 --- a/maloja/web/static/js/edit.js +++ b/maloja/web/static/js/edit.js @@ -19,7 +19,7 @@ function toggleDeleteConfirm(element) { function deleteScrobble(id,element) { var callback_func = function(req){ if (req.status == 200) { - element.parentElement.parentElement.parentElement.classList.add('removed'); + element.parentElement.parentElement.parentElement.parentElement.classList.add('removed'); notifyCallback(req); } else {