1
0
Fork 0

trigger reading status modals from move button

- unhide reading status shelves
- trigger modals when moving to a read status shelf
- force page refresh when using move button
This commit is contained in:
Hugh Rundle 2021-11-20 08:06:13 +11:00
parent ec39346e67
commit 9ffe4d340e
No known key found for this signature in database
GPG key ID: CD23D6039184286B
8 changed files with 68 additions and 7 deletions

View file

@ -90,6 +90,11 @@ let StatusCache = new class {
trigger.removeAttribute('disabled');
})
.then(response => {
if (response.headers.get("forceReload")) {
BookWyrm.addRemoveClass(form, 'is-processing', true);
trigger.setAttribute('disabled', null);
return location.reload();
}
if (!response.ok) {
throw new Error();
}