@internetarchive/ia-book-actions 0.1.11-b21 → 0.1.11-b22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/ia-book-actions",
3
- "version": "0.1.11-b21",
3
+ "version": "0.1.11-b22",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -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({ customModalContent: nothing }));
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
@@ -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
- editedActionButtons.parentElement.removeChild(editedActionButtons);
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);