More interface fixing and notifications

This commit is contained in:
krateng 2022-04-22 18:43:40 +02:00
parent d208290956
commit 98c791064d
3 changed files with 8 additions and 6 deletions

View File

@ -634,7 +634,8 @@ def delete_scrobble(timestamp):
"""Internal Use Only""" """Internal Use Only"""
result = database.remove_scrobble(timestamp) result = database.remove_scrobble(timestamp)
return { return {
"status":"success" "status":"success",
"desc":f"Scrobble was deleted!"
} }
@ -687,10 +688,11 @@ def reparse_scrobble(timestamp):
result = database.reparse_scrobble(timestamp) result = database.reparse_scrobble(timestamp)
if result: if result:
return { return {
"status":"success" "status":"success",
"desc":f"Scrobble was reparsed!"
} }
else: else:
return { return {
"status":"no-operation", "status":"no-operation",
"desc":"No action was taken." "desc":"The scrobble was not changed."
} }

View File

@ -655,10 +655,10 @@ table.list tr td.scrobble_action_area.active span.scrobble_action_type.active sp
display: none; 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; 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; display: none;
} }
table.list tr.removed { table.list tr.removed {

View File

@ -19,7 +19,7 @@ function toggleDeleteConfirm(element) {
function deleteScrobble(id,element) { function deleteScrobble(id,element) {
var callback_func = function(req){ var callback_func = function(req){
if (req.status == 200) { if (req.status == 200) {
element.parentElement.parentElement.parentElement.classList.add('removed'); element.parentElement.parentElement.parentElement.parentElement.classList.add('removed');
notifyCallback(req); notifyCallback(req);
} }
else { else {