@sprucelabs/spruce-appointment-utils 13.4.21 → 13.5.1
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.
|
@@ -147,8 +147,8 @@ class DurationListViewController extends AbstractViewController {
|
|
|
147
147
|
this.addRow(timeBlock);
|
|
148
148
|
}
|
|
149
149
|
handleClickEditTitle(timeBlock) {
|
|
150
|
-
var _a;
|
|
151
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
var _a;
|
|
152
152
|
const editVc = this.Controller('appointments.edit-time-block-title-card', {
|
|
153
153
|
onCancel: () => { },
|
|
154
154
|
onSubmit: (title) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -86,8 +86,8 @@ export default class AbstractCapabilityCardViewController extends AbstractViewCo
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
handleClickRow(service) {
|
|
89
|
-
var _a;
|
|
90
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
var _a;
|
|
91
91
|
const serviceRoleCapability = this.getCapabilityForService(service.id);
|
|
92
92
|
this.editVc = this.Controller('appointments.edit-override-details-card', {
|
|
93
93
|
onCancel: () => { },
|
|
@@ -114,8 +114,8 @@ export default class AbstractCapabilityCardViewController extends AbstractViewCo
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
handleToggleDoesOffer(service, doesOffer) {
|
|
117
|
-
var _a;
|
|
118
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a;
|
|
119
119
|
(_a = this.toggleDoesOfferHandler) === null || _a === void 0 ? void 0 : _a.call(this, service.id, doesOffer);
|
|
120
120
|
yield this.updateCapabilityForService(service, { doesOffer });
|
|
121
121
|
});
|
|
@@ -28,8 +28,8 @@ class RolesCardViewController extends AbstractCapabilityCardViewController {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
load(options) {
|
|
31
|
-
var _a;
|
|
32
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a;
|
|
33
33
|
yield this.loadVc((_a = options.organizationId) !== null && _a !== void 0 ? _a : 'missing-org');
|
|
34
34
|
});
|
|
35
35
|
}
|