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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user