@internetarchive/ia-book-actions 0.0.22-1 → 0.0.22-1-alpha1

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.0.22-1",
3
+ "version": "0.0.22-1-alpha1",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -86,6 +86,7 @@ export class GetLendingActions {
86
86
  primaryTitle: '',
87
87
  primaryActions: [],
88
88
  secondaryActions: [this.actionsConfig.adminOrPrintDisabledExitConfig()],
89
+ borrowType: 'adminBorrowed',
89
90
  };
90
91
  }
91
92
 
@@ -46,6 +46,9 @@ export class LoanTokenPoller {
46
46
  // Do an initial token, then set an interval
47
47
  this.handleLoanTokenPoller(true);
48
48
 
49
+ // if `this.borrowType` = adminBorrowed, early return
50
+ if (this.borrowType === 'adminBorrowed') return;
51
+
49
52
  this.loanTokenInterval = setInterval(() => {
50
53
  this.handleLoanTokenPoller();
51
54
  }, this.pollerDelay);