@sprucelabs/spruce-calendar-components 38.1.11 → 38.1.12
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.
|
@@ -5,7 +5,7 @@ export default class VenuesListViewController extends AbstractViewController<Lis
|
|
|
5
5
|
protected listVc: ListViewController;
|
|
6
6
|
private venues;
|
|
7
7
|
protected onSelectHandler?: (venue: Venue) => void;
|
|
8
|
-
private router
|
|
8
|
+
private router?;
|
|
9
9
|
private isLoaded;
|
|
10
10
|
private selectedVenue?;
|
|
11
11
|
constructor(options: ViewControllerOptions & VenuesListConstructorOptions);
|
|
@@ -27,6 +27,6 @@ export interface VenuesListLoadOptions {
|
|
|
27
27
|
organizationId: string;
|
|
28
28
|
}
|
|
29
29
|
export interface VenuesListConstructorOptions {
|
|
30
|
-
router
|
|
30
|
+
router?: Router;
|
|
31
31
|
onSelect?: (venue: Venue) => void;
|
|
32
32
|
}
|
|
@@ -126,7 +126,8 @@ class VenuesListViewController extends AbstractViewController {
|
|
|
126
126
|
}
|
|
127
127
|
handleOnClickJoinUrl(joinUrl) {
|
|
128
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
|
|
129
|
+
var _a;
|
|
130
|
+
yield ((_a = this.router) === null || _a === void 0 ? void 0 : _a.redirect(joinUrl));
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
handleClickedCheckbox(venue) {
|
|
@@ -5,7 +5,7 @@ export default class VenuesListViewController extends AbstractViewController<Lis
|
|
|
5
5
|
protected listVc: ListViewController;
|
|
6
6
|
private venues;
|
|
7
7
|
protected onSelectHandler?: (venue: Venue) => void;
|
|
8
|
-
private router
|
|
8
|
+
private router?;
|
|
9
9
|
private isLoaded;
|
|
10
10
|
private selectedVenue?;
|
|
11
11
|
constructor(options: ViewControllerOptions & VenuesListConstructorOptions);
|
|
@@ -27,6 +27,6 @@ export interface VenuesListLoadOptions {
|
|
|
27
27
|
organizationId: string;
|
|
28
28
|
}
|
|
29
29
|
export interface VenuesListConstructorOptions {
|
|
30
|
-
router
|
|
30
|
+
router?: Router;
|
|
31
31
|
onSelect?: (venue: Venue) => void;
|
|
32
32
|
}
|
|
@@ -110,7 +110,7 @@ class VenuesListViewController extends heartwood_view_controllers_1.AbstractView
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
async handleOnClickJoinUrl(joinUrl) {
|
|
113
|
-
await this.router
|
|
113
|
+
await this.router?.redirect(joinUrl);
|
|
114
114
|
}
|
|
115
115
|
handleClickedCheckbox(venue) {
|
|
116
116
|
this.venues.forEach(async (v) => {
|