datastake-daf 0.6.384 → 0.6.385
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/dist/components/index.js
CHANGED
|
@@ -56905,7 +56905,8 @@ function NewUser({
|
|
|
56905
56905
|
onClose,
|
|
56906
56906
|
defaultData,
|
|
56907
56907
|
userRoles = [],
|
|
56908
|
-
addUser = () => {}
|
|
56908
|
+
addUser = () => {},
|
|
56909
|
+
module = "straatos"
|
|
56909
56910
|
}) {
|
|
56910
56911
|
const [MainForm] = antd.Form.useForm();
|
|
56911
56912
|
const [accountUsed, setAccountUsed] = React.useState(false);
|
|
@@ -56926,9 +56927,8 @@ function NewUser({
|
|
|
56926
56927
|
email: val.email,
|
|
56927
56928
|
role: val.role,
|
|
56928
56929
|
apps: {
|
|
56929
|
-
|
|
56930
|
-
role: val.role
|
|
56931
|
-
access: true
|
|
56930
|
+
[module]: {
|
|
56931
|
+
role: val.role
|
|
56932
56932
|
}
|
|
56933
56933
|
}
|
|
56934
56934
|
};
|
|
@@ -57380,7 +57380,8 @@ function Users({
|
|
|
57380
57380
|
isOpen: newUserModalVisible,
|
|
57381
57381
|
onClose: () => setNewUserModalVisible(false),
|
|
57382
57382
|
userRoles: userRoles,
|
|
57383
|
-
addUser: addUser
|
|
57383
|
+
addUser: addUser,
|
|
57384
|
+
module: module
|
|
57384
57385
|
})]
|
|
57385
57386
|
});
|
|
57386
57387
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import Modal from "../../../../Modal/index.jsx";
|
|
|
2
2
|
import { Form, Select, Alert, Input } from "antd";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
|
|
5
|
-
export default function NewUser({ t, isOpen, onClose, defaultData, userRoles = [], addUser = () => {} }) {
|
|
5
|
+
export default function NewUser({ t, isOpen, onClose, defaultData, userRoles = [], addUser = () => {}, module = "straatos" }) {
|
|
6
6
|
const [MainForm] = Form.useForm();
|
|
7
7
|
const [accountUsed, setAccountUsed] = useState(false);
|
|
8
8
|
|
|
@@ -25,9 +25,8 @@ export default function NewUser({ t, isOpen, onClose, defaultData, userRoles = [
|
|
|
25
25
|
email: val.email,
|
|
26
26
|
role: val.role,
|
|
27
27
|
apps: {
|
|
28
|
-
|
|
29
|
-
role: val.role,
|
|
30
|
-
access: true
|
|
28
|
+
[module]: {
|
|
29
|
+
role: val.role,
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
};
|