@paro.io/expert-shared-components 1.12.55 → 1.12.56
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.
|
@@ -56,7 +56,7 @@ const CustomTag = ({ label, iconLeft, onClick, customColor, }) => {
|
|
|
56
56
|
};
|
|
57
57
|
exports.CustomTag = CustomTag;
|
|
58
58
|
const EscalationIssueCard = ({ issues, isExpert, openEscalationChat, showRespondButton = false, setSelectedIssueId, showMarkResolvedButton = false, updateProjectEscalation, downloadDocumentUrl, bucketName, }) => {
|
|
59
|
-
var _a, _b;
|
|
59
|
+
var _a, _b, _c;
|
|
60
60
|
const [viewResponseModal, setViewResponseModal] = (0, react_1.useState)(null);
|
|
61
61
|
const [markAsResolved, setMarkAsResolved] = (0, react_1.useState)(null);
|
|
62
62
|
const getResponseButtonText = (issue) => {
|
|
@@ -109,6 +109,6 @@ const EscalationIssueCard = ({ issues, isExpert, openEscalationChat, showRespond
|
|
|
109
109
|
showMarkResolvedButton && !isExpert && (react_1.default.createElement(base_ui_1.Button, { onClick: () => { setMarkAsResolved(issue); }, label: "Mark as Resolved", color: "primary" })))));
|
|
110
110
|
}),
|
|
111
111
|
!!viewResponseModal && react_1.default.createElement(ViewResponseModal_1.default, { response: isExpert ? viewResponseModal.clientResponse : viewResponseModal.expertResponse, isExpert: isExpert, open: !!viewResponseModal, onClose: () => setViewResponseModal(null) }),
|
|
112
|
-
!!markAsResolved && react_1.default.createElement(MarkResolvedModal_1.default, { escalationId: markAsResolved.escalationId, expertName: (_b = (_a = markAsResolved === null || markAsResolved === void 0 ? void 0 : markAsResolved.freelancer) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : 'Expert', open: !!markAsResolved, onClose: () => setMarkAsResolved(false), updateProjectEscalation: updateProjectEscalation })));
|
|
112
|
+
!!markAsResolved && react_1.default.createElement(MarkResolvedModal_1.default, { escalationId: markAsResolved.escalationId, expertName: (_b = (_a = markAsResolved === null || markAsResolved === void 0 ? void 0 : markAsResolved.freelancer) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : 'Expert', open: !!markAsResolved, onClose: () => setMarkAsResolved(false), updateProjectEscalation: updateProjectEscalation, clientId: (_c = markAsResolved === null || markAsResolved === void 0 ? void 0 : markAsResolved.client) === null || _c === void 0 ? void 0 : _c.id })));
|
|
113
113
|
};
|
|
114
114
|
exports.default = EscalationIssueCard;
|
|
@@ -150,6 +150,7 @@ const EscalationRespondForm = ({ goBack, selectedIssue, documentUploadUrl, downl
|
|
|
150
150
|
escalationId: selectedIssue.escalationId,
|
|
151
151
|
[isExpert ? 'expertResponse' : 'clientResponse']: responseInput,
|
|
152
152
|
[isExpert ? 'expertSupportingDocuments' : 'clientSupportingDocuments']: uploadFiles.length > 0 ? uploadFiles.join(", ") : '',
|
|
153
|
+
statuschangedby: isExpert ? selectedIssue.freelancer.id : selectedIssue.client.id,
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const MarkResolvedModal: ({ escalationId, expertName, open, onClose, updateProjectEscalation, }: {
|
|
2
|
+
declare const MarkResolvedModal: ({ escalationId, expertName, open, onClose, updateProjectEscalation, clientId, }: {
|
|
3
3
|
escalationId: string;
|
|
4
4
|
expertName: string;
|
|
5
5
|
open: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
updateProjectEscalation: any;
|
|
8
|
+
clientId: number;
|
|
8
9
|
}) => React.JSX.Element;
|
|
9
10
|
export default MarkResolvedModal;
|
|
@@ -37,7 +37,7 @@ const base_icons_1 = require("@paro.io/base-icons");
|
|
|
37
37
|
const base_ui_1 = require("@paro.io/base-ui");
|
|
38
38
|
const core_1 = require("@material-ui/core");
|
|
39
39
|
const utils_1 = require("../shared/utils");
|
|
40
|
-
const MarkResolvedModal = ({ escalationId, expertName, open, onClose, updateProjectEscalation, }) => {
|
|
40
|
+
const MarkResolvedModal = ({ escalationId, expertName, open, onClose, updateProjectEscalation, clientId, }) => {
|
|
41
41
|
const [resolutionText, setResolutionText] = (0, react_1.useState)(null);
|
|
42
42
|
const [submitting, setSubmitting] = (0, react_1.useState)(false);
|
|
43
43
|
const handleSubmit = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -48,7 +48,8 @@ const MarkResolvedModal = ({ escalationId, expertName, open, onClose, updateProj
|
|
|
48
48
|
input: {
|
|
49
49
|
escalationId: escalationId,
|
|
50
50
|
clientResolution: resolutionText,
|
|
51
|
-
status: 'Resolved'
|
|
51
|
+
status: 'Resolved',
|
|
52
|
+
statuschangedby: clientId,
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
});
|