@internetarchive/ia-book-actions 0.1.11-b7 → 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 +3 -11
package/demo/index.html
CHANGED
package/package.json
CHANGED
package/src/ia-book-actions.js
CHANGED
|
@@ -77,7 +77,6 @@ export default class IABookActions extends LitElement {
|
|
|
77
77
|
this.barType = 'action'; // 'title'|'action'
|
|
78
78
|
this.sharedObserver = undefined;
|
|
79
79
|
this.disableActionGroup = false;
|
|
80
|
-
this.modal = undefined;
|
|
81
80
|
this.tokenDelay = 120; // in seconds
|
|
82
81
|
|
|
83
82
|
// private props
|
|
@@ -310,15 +309,9 @@ export default class IABookActions extends LitElement {
|
|
|
310
309
|
|
|
311
310
|
/** @returns HTMLElement */
|
|
312
311
|
get modal() {
|
|
313
|
-
|
|
312
|
+
const modalOnDom = document.querySelector('modal-manager');
|
|
314
313
|
|
|
315
|
-
|
|
316
|
-
const newModal = document.createElement('modal-manager');
|
|
317
|
-
document.body.appendChild(newModal);
|
|
318
|
-
modalOnDom = newModal;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
this.modal.id = 'action-bar-modal';
|
|
314
|
+
modalOnDom.id = 'action-bar-modal';
|
|
322
315
|
return modalOnDom;
|
|
323
316
|
}
|
|
324
317
|
|
|
@@ -669,8 +662,7 @@ export default class IABookActions extends LitElement {
|
|
|
669
662
|
|
|
670
663
|
// close the modal
|
|
671
664
|
this.modal.removeAttribute('id');
|
|
672
|
-
this.modal
|
|
673
|
-
this.modal?.showModal({ config: {}, customModalContent: `` });
|
|
665
|
+
this.modal.closeModal();
|
|
674
666
|
|
|
675
667
|
window?.Sentry?.captureMessage(sentryLogs.bookHasRenewed);
|
|
676
668
|
}
|