@internetarchive/ia-book-actions 0.1.11-b8 → 0.1.11-b9
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/demo/index.html +1 -0
- package/package.json +1 -1
- package/src/ia-book-actions.js +2 -9
package/demo/index.html
CHANGED
package/package.json
CHANGED
package/src/ia-book-actions.js
CHANGED
|
@@ -309,13 +309,7 @@ export default class IABookActions extends LitElement {
|
|
|
309
309
|
|
|
310
310
|
/** @returns HTMLElement */
|
|
311
311
|
get modal() {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
if (!modalOnDom) {
|
|
315
|
-
const newModal = document.createElement('modal-manager');
|
|
316
|
-
document.body.appendChild(newModal);
|
|
317
|
-
modalOnDom = newModal;
|
|
318
|
-
}
|
|
312
|
+
const modalOnDom = document.querySelector('modal-manager');
|
|
319
313
|
|
|
320
314
|
modalOnDom.id = 'action-bar-modal';
|
|
321
315
|
return modalOnDom;
|
|
@@ -668,8 +662,7 @@ export default class IABookActions extends LitElement {
|
|
|
668
662
|
|
|
669
663
|
// close the modal
|
|
670
664
|
this.modal.removeAttribute('id');
|
|
671
|
-
this.modal
|
|
672
|
-
this.modal?.showModal({ config: {}, customModalContent: `` });
|
|
665
|
+
this.modal.closeModal();
|
|
673
666
|
|
|
674
667
|
window?.Sentry?.captureMessage(sentryLogs.bookHasRenewed);
|
|
675
668
|
}
|