@voplus/morpho-workspace 6.0.153 → 6.0.154
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,29 +10,28 @@ const WorkSpaceSettingPage = (props) => {
|
|
10
10
|
const wrokspace = useWorkspace(props.id);
|
11
11
|
return observe(() => {
|
12
12
|
var _a, _b, _c, _d;
|
13
|
-
return (React.createElement("
|
14
|
-
React.createElement(
|
15
|
-
React.createElement(
|
16
|
-
React.createElement(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
React.createElement(
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
} }))))));
|
13
|
+
return (React.createElement(SettingPage, { className: "workSpace-setting-page", pageHeadProps: { visible: true } },
|
14
|
+
React.createElement(SettingSection, { className: "setting-section" },
|
15
|
+
React.createElement(Setting, { label: "Members" },
|
16
|
+
React.createElement(MentionList, { contacts: ((_a = wrokspace.settings) === null || _a === void 0 ? void 0 : _a.members) ? (_b = wrokspace.settings) === null || _b === void 0 ? void 0 : _b.members : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Members", onChange: (list) => {
|
17
|
+
const ids = [];
|
18
|
+
list.map((i) => ids.push(i.id));
|
19
|
+
onEdit({
|
20
|
+
Settings: {
|
21
|
+
Members: ids,
|
22
|
+
},
|
23
|
+
});
|
24
|
+
} })),
|
25
|
+
React.createElement(Setting, { label: "Owners" },
|
26
|
+
React.createElement(MentionList, { contacts: ((_c = wrokspace.settings) === null || _c === void 0 ? void 0 : _c.owners) ? (_d = wrokspace.settings) === null || _d === void 0 ? void 0 : _d.owners : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Owners", onChange: (list) => {
|
27
|
+
const ids = [];
|
28
|
+
list.map((i) => ids.push(i.id));
|
29
|
+
onEdit({
|
30
|
+
Settings: {
|
31
|
+
Owners: ids,
|
32
|
+
},
|
33
|
+
});
|
34
|
+
} })))));
|
36
35
|
});
|
37
36
|
function onEdit(data) {
|
38
37
|
store.edit(props.id, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB
|
1
|
+
{"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,KAAK,GAAG,iBAAiB,EAAE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