@shisyamo4131/air-guard-v2-schemas 2.4.2-dev.78 → 2.4.2-dev.79
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.
- package/package.json +1 -1
- package/src/User.js +13 -1
package/package.json
CHANGED
package/src/User.js
CHANGED
|
@@ -23,7 +23,19 @@ export default class User extends FireModel {
|
|
|
23
23
|
static className = "ユーザー";
|
|
24
24
|
static collectionPath = "Users";
|
|
25
25
|
static classProps = {
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
|
+
* email
|
|
28
|
+
* - 登録時以外編集不可。
|
|
29
|
+
* - ユーザーアカウントのメールアドレスの変更は Cloud Functions 経由とする。
|
|
30
|
+
*/
|
|
31
|
+
email: defField("email", {
|
|
32
|
+
required: true,
|
|
33
|
+
component: {
|
|
34
|
+
attrs: {
|
|
35
|
+
disabled: ({ editMode, item }) => editMode !== "CREATE",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
27
39
|
displayName: defField("displayName", { required: true }),
|
|
28
40
|
employeeId: defField("oneLine", { label: "従業員ID", hidden: true }),
|
|
29
41
|
roles: defField("roles"),
|