@voplus/morpho-csp 1.2.64 → 1.2.65
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.
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
3
2
|
import { Button } from "@voplus/antd";
|
|
4
3
|
import CLDASendForm from "../../../components/CLDASendForm";
|
|
5
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import React from "react";
|
|
6
6
|
import { faCircleEnvelope } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
import { useCLDAStore } from "../../../../../../data/CLDA";
|
|
8
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
9
8
|
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
9
|
+
import { useIncorporationCLDA } from "../../../../../../data/incorporation-clda";
|
|
10
10
|
const SendCLDA = (props) => {
|
|
11
11
|
const { disabled, action } = props;
|
|
12
12
|
const asideContext = useAsideContentContext();
|
|
13
13
|
const context = useDocumentMenuContext();
|
|
14
|
-
const
|
|
14
|
+
const clda = useIncorporationCLDA(context.id);
|
|
15
15
|
const store = useCLDAStore();
|
|
16
|
-
return observe(() => (React.createElement(React.Fragment, null, !
|
|
16
|
+
return observe(() => (React.createElement(React.Fragment, null, !clda.system && !clda.assistantStatus ? (React.createElement(React.Fragment, null,
|
|
17
17
|
React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
18
18
|
React.createElement(FAIcon, { icon: faCircleEnvelope }),
|
|
19
19
|
React.createElement("span", null, "Send CLDA")))) : null)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendCLDA.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SendCLDA.js","sourceR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