@sprucelabs/spruce-organization-utils 2.2.0 → 2.2.3
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.
|
@@ -21,7 +21,7 @@ export default class OrganizationListCardViewController extends AbstractViewCont
|
|
|
21
21
|
private ActiveRecordCardVc;
|
|
22
22
|
private handleClickDeleteOrg;
|
|
23
23
|
buildRow(org: Organization): Row;
|
|
24
|
-
|
|
24
|
+
handleDeleteOrg(org: SpruceSchemas.Spruce.v2020_07_22.Organization): Promise<void>;
|
|
25
25
|
load(): Promise<void>;
|
|
26
26
|
getListVc(): import("@sprucelabs/heartwood-view-controllers").ListViewController;
|
|
27
27
|
getCardVc(): import("@sprucelabs/heartwood-view-controllers").CardViewController;
|
|
@@ -44,7 +44,7 @@ export default class OrganizationListCardViewController extends AbstractViewCont
|
|
|
44
44
|
if (!shouldDelete) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
yield this.
|
|
47
|
+
yield this.handleDeleteOrg(org);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
buildRow(org) {
|
|
@@ -79,7 +79,7 @@ export default class OrganizationListCardViewController extends AbstractViewCont
|
|
|
79
79
|
].filter((b) => !!b),
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
handleDeleteOrg(org) {
|
|
83
83
|
var _a;
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
yield ((_a = this.onDelete) === null || _a === void 0 ? void 0 : _a.call(this, org));
|
|
@@ -21,7 +21,7 @@ export default class OrganizationListCardViewController extends AbstractViewCont
|
|
|
21
21
|
private ActiveRecordCardVc;
|
|
22
22
|
private handleClickDeleteOrg;
|
|
23
23
|
buildRow(org: Organization): Row;
|
|
24
|
-
|
|
24
|
+
handleDeleteOrg(org: SpruceSchemas.Spruce.v2020_07_22.Organization): Promise<void>;
|
|
25
25
|
load(): Promise<void>;
|
|
26
26
|
getListVc(): import("@sprucelabs/heartwood-view-controllers").ListViewController;
|
|
27
27
|
getCardVc(): import("@sprucelabs/heartwood-view-controllers").CardViewController;
|
|
@@ -36,7 +36,7 @@ class OrganizationListCardViewController extends heartwood_view_controllers_1.Ab
|
|
|
36
36
|
if (!shouldDelete) {
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
await this.
|
|
39
|
+
await this.handleDeleteOrg(org);
|
|
40
40
|
}
|
|
41
41
|
buildRow(org) {
|
|
42
42
|
return {
|
|
@@ -70,7 +70,7 @@ class OrganizationListCardViewController extends heartwood_view_controllers_1.Ab
|
|
|
70
70
|
].filter((b) => !!b),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
async
|
|
73
|
+
async handleDeleteOrg(org) {
|
|
74
74
|
var _a;
|
|
75
75
|
await ((_a = this.onDelete) === null || _a === void 0 ? void 0 : _a.call(this, org));
|
|
76
76
|
this.activeRecordCardVc.deleteRow(org.id);
|