@gpa-gemstone/common-pages 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/user/UserForm.js +3 -1
- package/package.json +3 -3
package/lib/user/UserForm.js
CHANGED
@@ -61,6 +61,8 @@ function UserForm(props) {
|
|
61
61
|
return user.Phone == null || user.Phone.length <= 200;
|
62
62
|
else if (field === 'Email')
|
63
63
|
return user.Email == null || user.Email.length <= 200;
|
64
|
+
else if (field === "ChangePasswordOn")
|
65
|
+
return user.ChangePasswordOn == null;
|
64
66
|
return false;
|
65
67
|
}
|
66
68
|
if (props.UserAccount == null)
|
@@ -129,7 +131,7 @@ function UserForm(props) {
|
|
129
131
|
React.createElement("div", { className: "col" },
|
130
132
|
React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Phone', Feedback: 'Password must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
|
131
133
|
React.createElement(react_forms_1.Input, { Record: props.UserAccount, Field: 'Email', Feedback: 'Password must be less than 200 characters.', Valid: function (field) { return validUserAccountField(props.UserAccount, field); }, Setter: props.Setter }),
|
132
|
-
React.createElement(react_forms_1.DatePicker, { Record: props.UserAccount, Field: 'ChangePasswordOn', Label: 'Change Password On', Setter: props.Setter })))),
|
134
|
+
React.createElement(react_forms_1.DatePicker, { Record: props.UserAccount, Field: 'ChangePasswordOn', Label: 'Change Password On', Setter: props.Setter, Valid: function (field) { return validUserAccountField(props.UserAccount, field); } })))),
|
133
135
|
React.createElement("div", { className: "row" },
|
134
136
|
React.createElement("div", { className: "col", style: { margin: 10 } },
|
135
137
|
React.createElement(react_forms_1.CheckBox, { Record: props.UserAccount, Label: 'Locked Out', Field: 'LockedOut', Setter: props.Setter }),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gpa-gemstone/common-pages",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.39",
|
4
4
|
"description": "Common UI pages for GPA products",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -50,8 +50,8 @@
|
|
50
50
|
"@gpa-gemstone/application-typings": "0.0.45",
|
51
51
|
"@gpa-gemstone/gpa-symbols": "0.0.20",
|
52
52
|
"@gpa-gemstone/helper-functions": "0.0.14",
|
53
|
-
"@gpa-gemstone/react-forms": "1.1.
|
54
|
-
"@gpa-gemstone/react-interactive": "1.0.
|
53
|
+
"@gpa-gemstone/react-forms": "1.1.22",
|
54
|
+
"@gpa-gemstone/react-interactive": "1.0.50",
|
55
55
|
"@gpa-gemstone/react-table": "1.2.12",
|
56
56
|
"@reduxjs/toolkit": "1.6.0",
|
57
57
|
"crypto-js": "4.0.0",
|