@sprucelabs/spruce-profile-utils 3.1.0 → 3.1.2
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.
|
@@ -54,6 +54,7 @@ class ProfileCardViewController extends AbstractViewController {
|
|
|
54
54
|
fields: ['firstName', 'lastName'],
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
+
id: 'location',
|
|
57
58
|
title: 'Location info',
|
|
58
59
|
fields: ['timezone'],
|
|
59
60
|
},
|
|
@@ -110,7 +111,7 @@ class ProfileCardViewController extends AbstractViewController {
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
else {
|
|
113
|
-
this.formVc.
|
|
114
|
+
this.formVc.removeSection('location');
|
|
114
115
|
}
|
|
115
116
|
yield this.formVc.setValues(Object.assign(Object.assign({}, options.person), { timezone: (_a = person.timezone) !== null && _a !== void 0 ? _a : locale === null || locale === void 0 ? void 0 : locale.getZoneName() }));
|
|
116
117
|
this.formVc.disable();
|
|
@@ -47,6 +47,7 @@ class ProfileCardViewController extends heartwood_view_controllers_1.AbstractVie
|
|
|
47
47
|
fields: ['firstName', 'lastName'],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
+
id: 'location',
|
|
50
51
|
title: 'Location info',
|
|
51
52
|
fields: ['timezone'],
|
|
52
53
|
},
|
|
@@ -100,7 +101,7 @@ class ProfileCardViewController extends heartwood_view_controllers_1.AbstractVie
|
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
103
|
else {
|
|
103
|
-
this.formVc.
|
|
104
|
+
this.formVc.removeSection('location');
|
|
104
105
|
}
|
|
105
106
|
await this.formVc.setValues(Object.assign(Object.assign({}, options.person), { timezone: (_a = person.timezone) !== null && _a !== void 0 ? _a : locale === null || locale === void 0 ? void 0 : locale.getZoneName() }));
|
|
106
107
|
this.formVc.disable();
|