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
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();
}