@internetarchive/ia-book-actions 0.1.11-b21 → 0.1.11-b23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ia-book-actions.js +8 -7
package/package.json
CHANGED
package/src/ia-book-actions.js
CHANGED
|
@@ -321,7 +321,7 @@ export default class IABookActions extends LitElement {
|
|
|
321
321
|
async showWarningModal() {
|
|
322
322
|
console.log('****** showWarningModal ******');
|
|
323
323
|
// clear modal
|
|
324
|
-
this.modal?.showModal(new ModalConfig(
|
|
324
|
+
this.modal?.showModal({ options: new ModalConfig(), customModalContent: nothing});
|
|
325
325
|
this.modal?.closeModal();
|
|
326
326
|
|
|
327
327
|
// if secondsLeft < 60, consider it 1 minute
|
|
@@ -353,7 +353,7 @@ export default class IABookActions extends LitElement {
|
|
|
353
353
|
<button
|
|
354
354
|
style="${modalButtonStyle.iaButton} ${modalButtonStyle.return}"
|
|
355
355
|
@click=${event => {
|
|
356
|
-
|
|
356
|
+
this.changeModalState(event);
|
|
357
357
|
document.querySelector('ia-book-actions').disableActionGroup = true;
|
|
358
358
|
this.returnNow = true;
|
|
359
359
|
}}
|
|
@@ -366,7 +366,7 @@ export default class IABookActions extends LitElement {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
async patronWantsToRenewBook(event) {
|
|
369
|
-
|
|
369
|
+
this.changeModalState(event);
|
|
370
370
|
this.loanRenewResult = { texts: '', renewNow: true };
|
|
371
371
|
}
|
|
372
372
|
|
|
@@ -658,10 +658,11 @@ export default class IABookActions extends LitElement {
|
|
|
658
658
|
|
|
659
659
|
// close the modal
|
|
660
660
|
this.modal.removeAttribute('id');
|
|
661
|
-
const editedActionButtons = this.modal.shadowRoot.querySelector('#book-action-bar-custom-buttons');
|
|
662
|
-
if (editedActionButtons) {
|
|
663
|
-
|
|
664
|
-
}
|
|
661
|
+
// const editedActionButtons = this.modal.shadowRoot.querySelector('#book-action-bar-custom-buttons');
|
|
662
|
+
// if (editedActionButtons) {
|
|
663
|
+
// editedActionButtons.parentElement.removeChild(editedActionButtons);
|
|
664
|
+
// }
|
|
665
|
+
this.modal.showModal({ options: new ModalConfig(), customModalConfig: nothing });
|
|
665
666
|
this.modal?.closeModal();
|
|
666
667
|
|
|
667
668
|
window?.Sentry?.captureMessage(sentryLogs.bookHasRenewed);
|