mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
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:
parent
f37ad97a05
commit
dd5286059f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue