@sprucelabs/spruce-people-utils 3.7.8 → 3.8.0
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.
|
@@ -185,6 +185,7 @@ class InvitePersonCardViewController extends AbstractViewController {
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
handleSubmitNamePhoneForm() {
|
|
188
|
+
var _a;
|
|
188
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
190
|
this.swipeVc.setIsBusy(true);
|
|
190
191
|
yield this.swipeVc.jumpToSlide(1);
|
|
@@ -204,6 +205,9 @@ class InvitePersonCardViewController extends AbstractViewController {
|
|
|
204
205
|
message: 'approve your account',
|
|
205
206
|
},
|
|
206
207
|
});
|
|
208
|
+
if (invite.autoAcceptedPersonId) {
|
|
209
|
+
return (_a = this.doneHandler) === null || _a === void 0 ? void 0 : _a.call(this, invite.autoAcceptedPersonId);
|
|
210
|
+
}
|
|
207
211
|
this.pendingInvite = invite;
|
|
208
212
|
}
|
|
209
213
|
catch (err) {
|
|
@@ -249,7 +253,7 @@ const inviteFormSchema = buildSchema({
|
|
|
249
253
|
id: 'inviteForm',
|
|
250
254
|
fields: {
|
|
251
255
|
firstName: {
|
|
252
|
-
label: 'First
|
|
256
|
+
label: 'First Name',
|
|
253
257
|
type: 'text',
|
|
254
258
|
},
|
|
255
259
|
phone: {
|
|
@@ -165,6 +165,7 @@ class InvitePersonCardViewController extends heartwood_view_controllers_1.Abstra
|
|
|
165
165
|
return super.destroy();
|
|
166
166
|
}
|
|
167
167
|
async handleSubmitNamePhoneForm() {
|
|
168
|
+
var _a;
|
|
168
169
|
this.swipeVc.setIsBusy(true);
|
|
169
170
|
await this.swipeVc.jumpToSlide(1);
|
|
170
171
|
try {
|
|
@@ -183,6 +184,9 @@ class InvitePersonCardViewController extends heartwood_view_controllers_1.Abstra
|
|
|
183
184
|
message: 'approve your account',
|
|
184
185
|
},
|
|
185
186
|
});
|
|
187
|
+
if (invite.autoAcceptedPersonId) {
|
|
188
|
+
return (_a = this.doneHandler) === null || _a === void 0 ? void 0 : _a.call(this, invite.autoAcceptedPersonId);
|
|
189
|
+
}
|
|
186
190
|
this.pendingInvite = invite;
|
|
187
191
|
}
|
|
188
192
|
catch (err) {
|
|
@@ -221,7 +225,7 @@ const inviteFormSchema = (0, schema_1.buildSchema)({
|
|
|
221
225
|
id: 'inviteForm',
|
|
222
226
|
fields: {
|
|
223
227
|
firstName: {
|
|
224
|
-
label: 'First
|
|
228
|
+
label: 'First Name',
|
|
225
229
|
type: 'text',
|
|
226
230
|
},
|
|
227
231
|
phone: {
|