account page will not refresh straight away when updating tags to help with updating a lot of tags at once

This commit is contained in:
Jack 2020-08-31 19:32:56 +01:00
parent f37ad97a05
commit dd5286059f

View file

@ -1820,13 +1820,16 @@ $("#resultEditTagsPanel .confirmButton").click((f) => {
}).then((r) => {
hideBackgroundLoader();
if (r.data.resultCode === 1) {
showNotification("Tags updated", 1000);
showNotification(
"Tags updated. Results will update when you change filters.",
3000
);
dbSnapshot.results.forEach((result) => {
if (result.id === resultid) {
result.tags = newtags;
}
});
refreshAccountPage();
// refreshAccountPage();
} else {
showNotification("Error updating tags", 3000);
}