@internetarchive/ia-book-actions 0.1.11-b13 → 0.1.11-b15

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-b13",
3
+ "version": "0.1.11-b15",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -343,7 +343,7 @@ export default class IABookActions extends LitElement {
343
343
  });
344
344
 
345
345
  const customModalContent = html`<br />
346
- <div id="custom-buttons" style="display:flex;justify-content:center;">
346
+ <div id="book-action-bar-custom-buttons" style="display:flex;justify-content:center;">
347
347
  <button
348
348
  style="${modalButtonStyle.iaButton} ${modalButtonStyle.renew}"
349
349
  @click=${event => this.patronWantsToRenewBook(event)}
@@ -421,14 +421,6 @@ export default class IABookActions extends LitElement {
421
421
  this.modal?.showModal({ config, customModalContent });
422
422
  }
423
423
 
424
- /**
425
- * close/hide modal-manager
426
- */
427
- async closeModalManager() {
428
- this.modal = document.querySelector('modal-manager');
429
- this.modal?.closeModal();
430
- }
431
-
432
424
  /**
433
425
  * @deprecated
434
426
  * create / select the toast-template component on DOM
@@ -665,7 +657,7 @@ export default class IABookActions extends LitElement {
665
657
 
666
658
  // close the modal
667
659
  this.modal.removeAttribute('id');
668
- this.modal?.showModal(new ModalConfig({ customModalContent: nothing }));
660
+ this.modal.removeChild(this.modal.querySelector('#book-action-bar-custom-buttons'));
669
661
  this.modal?.closeModal();
670
662
 
671
663
  window?.Sentry?.captureMessage(sentryLogs.bookHasRenewed);