@internetarchive/ia-book-actions 0.0.7-5 → 0.0.7-6
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
|
@@ -50,19 +50,19 @@ export class CollapsibleActionGroup extends ActionsHandler {
|
|
|
50
50
|
this.consecutiveLoanCounts = 1; // consecutive loan count
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
if (changed.has('width')) {
|
|
55
|
-
if (this.isBelowTabletContainer) {
|
|
56
|
-
this.resetActions();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
53
|
+
firstUpdated() {
|
|
60
54
|
// this is execute to fetch loan token
|
|
61
|
-
if (
|
|
55
|
+
if (this.borrowType) {
|
|
62
56
|
this.emitEnableBookAccess();
|
|
63
57
|
}
|
|
64
58
|
}
|
|
65
59
|
|
|
60
|
+
updated(changed) {
|
|
61
|
+
if (changed.has('width') && this.isBelowTabletContainer) {
|
|
62
|
+
this.resetActions();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
/**
|
|
67
67
|
* Dispatches event when patron is borrowing book.
|
|
68
68
|
* Notes borrow type, and consecutive borrow counts
|