authscape 1.0.472 → 1.0.474
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/index.js +27 -13
- package/package.json +1 -1
- package/src/components/tickets/TicketDetail.js +22 -8
package/index.js
CHANGED
|
@@ -8416,14 +8416,18 @@ var TicketDetail = function TicketDetail(_ref) {
|
|
|
8416
8416
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
8417
8417
|
customTabPayload = _useState16[0],
|
|
8418
8418
|
setCustomTabPayload = _useState16[1];
|
|
8419
|
-
var _useState17 = (0, _react.useState)(
|
|
8419
|
+
var _useState17 = (0, _react.useState)(null),
|
|
8420
8420
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
var _useState19 = (0, _react.useState)(
|
|
8421
|
+
ticketDescription = _useState18[0],
|
|
8422
|
+
setTicketDescription = _useState18[1];
|
|
8423
|
+
var _useState19 = (0, _react.useState)([]),
|
|
8424
8424
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
8425
|
-
|
|
8426
|
-
|
|
8425
|
+
createdByList = _useState20[0],
|
|
8426
|
+
setCreatedByList = _useState20[1];
|
|
8427
|
+
var _useState21 = (0, _react.useState)(null),
|
|
8428
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
8429
|
+
selectedCreatedBy = _useState22[0],
|
|
8430
|
+
setSelectedCreatedBy = _useState22[1];
|
|
8427
8431
|
(0, _react.useEffect)(function () {
|
|
8428
8432
|
var fetchData = /*#__PURE__*/function () {
|
|
8429
8433
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -8446,6 +8450,7 @@ var TicketDetail = function TicketDetail(_ref) {
|
|
|
8446
8450
|
setParticipants(response.data.participants);
|
|
8447
8451
|
setTicketAttachments(response.data.attachments);
|
|
8448
8452
|
setCustomTabPayload(response.data.customTabPayload);
|
|
8453
|
+
setTicketDescription(response.data.description);
|
|
8449
8454
|
}
|
|
8450
8455
|
case 5:
|
|
8451
8456
|
case "end":
|
|
@@ -8813,16 +8818,25 @@ var TicketDetail = function TicketDetail(_ref) {
|
|
|
8813
8818
|
onChange: handleChange,
|
|
8814
8819
|
"aria-label": "basic tabs example"
|
|
8815
8820
|
}, /*#__PURE__*/_react["default"].createElement(_Tab["default"], _extends({
|
|
8816
|
-
label: "
|
|
8821
|
+
label: "Description"
|
|
8817
8822
|
}, a11yProps(0))), /*#__PURE__*/_react["default"].createElement(_Tab["default"], _extends({
|
|
8818
|
-
label: "
|
|
8823
|
+
label: "Chat"
|
|
8819
8824
|
}, a11yProps(1))), /*#__PURE__*/_react["default"].createElement(_Tab["default"], _extends({
|
|
8825
|
+
label: "Notes"
|
|
8826
|
+
}, a11yProps(2))), /*#__PURE__*/_react["default"].createElement(_Tab["default"], _extends({
|
|
8820
8827
|
label: "Attachments"
|
|
8821
|
-
}, a11yProps(
|
|
8828
|
+
}, a11yProps(3))), customTabName != null && /*#__PURE__*/_react["default"].createElement(_Tab["default"], _extends({
|
|
8822
8829
|
label: customTabName
|
|
8823
|
-
}, a11yProps(
|
|
8830
|
+
}, a11yProps(4))))), /*#__PURE__*/_react["default"].createElement(TabPanel, {
|
|
8824
8831
|
value: value,
|
|
8825
8832
|
index: 0
|
|
8833
|
+
}, /*#__PURE__*/_react["default"].createElement(_system.Box, {
|
|
8834
|
+
dangerouslySetInnerHTML: {
|
|
8835
|
+
__html: ticketDescription
|
|
8836
|
+
}
|
|
8837
|
+
})), /*#__PURE__*/_react["default"].createElement(TabPanel, {
|
|
8838
|
+
value: value,
|
|
8839
|
+
index: 1
|
|
8826
8840
|
}, ticket != null && /*#__PURE__*/_react["default"].createElement(Comments, {
|
|
8827
8841
|
ticketId: ticket.id,
|
|
8828
8842
|
isDisabled: false,
|
|
@@ -8830,7 +8844,7 @@ var TicketDetail = function TicketDetail(_ref) {
|
|
|
8830
8844
|
currentUser: currentUser
|
|
8831
8845
|
})), /*#__PURE__*/_react["default"].createElement(TabPanel, {
|
|
8832
8846
|
value: value,
|
|
8833
|
-
index:
|
|
8847
|
+
index: 2
|
|
8834
8848
|
}, ticket != null && /*#__PURE__*/_react["default"].createElement(Comments, {
|
|
8835
8849
|
ticketId: ticket.id,
|
|
8836
8850
|
isDisabled: false,
|
|
@@ -8838,7 +8852,7 @@ var TicketDetail = function TicketDetail(_ref) {
|
|
|
8838
8852
|
currentUser: currentUser
|
|
8839
8853
|
})), /*#__PURE__*/_react["default"].createElement(TabPanel, {
|
|
8840
8854
|
value: value,
|
|
8841
|
-
index:
|
|
8855
|
+
index: 3
|
|
8842
8856
|
}, ticket != null && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, ticketAttachments.map(function (attachment) {
|
|
8843
8857
|
return /*#__PURE__*/_react["default"].createElement(DownloadFile, {
|
|
8844
8858
|
fileName: attachment.name,
|
|
@@ -8846,7 +8860,7 @@ var TicketDetail = function TicketDetail(_ref) {
|
|
|
8846
8860
|
});
|
|
8847
8861
|
}), ticketAttachments.length == 0 && /*#__PURE__*/_react["default"].createElement(_system.Box, null, "There are no attachments"))), customTabName != null && /*#__PURE__*/_react["default"].createElement(TabPanel, {
|
|
8848
8862
|
value: value,
|
|
8849
|
-
index:
|
|
8863
|
+
index: 4
|
|
8850
8864
|
}, customTabElement(customTabPayload))));
|
|
8851
8865
|
};
|
|
8852
8866
|
exports.TicketDetail = TicketDetail;
|
package/package.json
CHANGED
|
@@ -27,6 +27,8 @@ export const TicketDetail = ({ticketId, setIsLoading, currentUser, GoBackToViewT
|
|
|
27
27
|
const [ticketAttachments, setTicketAttachments] = useState([]);
|
|
28
28
|
const [customTabPayload, setCustomTabPayload] = useState(null);
|
|
29
29
|
|
|
30
|
+
const [ticketDescription, setTicketDescription] = useState(null);
|
|
31
|
+
|
|
30
32
|
const [createdByList, setCreatedByList] = useState([]);
|
|
31
33
|
const [selectedCreatedBy, setSelectedCreatedBy] = useState(null);
|
|
32
34
|
|
|
@@ -47,7 +49,8 @@ export const TicketDetail = ({ticketId, setIsLoading, currentUser, GoBackToViewT
|
|
|
47
49
|
setSelectedCreatedBy(response.data.selectedCreatedBy);
|
|
48
50
|
setParticipants(response.data.participants);
|
|
49
51
|
setTicketAttachments(response.data.attachments);
|
|
50
|
-
setCustomTabPayload(response.data.customTabPayload)
|
|
52
|
+
setCustomTabPayload(response.data.customTabPayload);
|
|
53
|
+
setTicketDescription(response.data.description);
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -326,28 +329,39 @@ export const TicketDetail = ({ticketId, setIsLoading, currentUser, GoBackToViewT
|
|
|
326
329
|
<Box sx={{ width: '100%', marginTop:2 }}>
|
|
327
330
|
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
|
|
328
331
|
<Tabs value={value} onChange={handleChange} aria-label="basic tabs example">
|
|
329
|
-
<Tab label="
|
|
330
|
-
<Tab label="
|
|
331
|
-
<Tab label="
|
|
332
|
+
<Tab label="Description" {...a11yProps(0)} />
|
|
333
|
+
<Tab label="Chat" {...a11yProps(1)} />
|
|
334
|
+
<Tab label="Notes" {...a11yProps(2)} />
|
|
335
|
+
<Tab label="Attachments" {...a11yProps(3)} />
|
|
332
336
|
|
|
333
337
|
{customTabName != null &&
|
|
334
|
-
<Tab label={customTabName} {...a11yProps(
|
|
338
|
+
<Tab label={customTabName} {...a11yProps(4)} />
|
|
335
339
|
}
|
|
336
340
|
|
|
337
341
|
</Tabs>
|
|
338
342
|
</Box>
|
|
339
343
|
<TabPanel value={value} index={0}>
|
|
340
344
|
|
|
345
|
+
<Box dangerouslySetInnerHTML={{
|
|
346
|
+
__html: ticketDescription,
|
|
347
|
+
}}>
|
|
348
|
+
</Box>
|
|
349
|
+
|
|
350
|
+
</TabPanel>
|
|
351
|
+
|
|
352
|
+
<TabPanel value={value} index={1}>
|
|
353
|
+
|
|
341
354
|
{ticket != null &&
|
|
342
355
|
<Comments ticketId={ticket.id} isDisabled={false} isNote={false} currentUser={currentUser} />
|
|
343
356
|
}
|
|
357
|
+
|
|
344
358
|
</TabPanel>
|
|
345
|
-
<TabPanel value={value} index={
|
|
359
|
+
<TabPanel value={value} index={2}>
|
|
346
360
|
{ticket != null &&
|
|
347
361
|
<Comments ticketId={ticket.id} isDisabled={false} isNote={true} currentUser={currentUser} />
|
|
348
362
|
}
|
|
349
363
|
</TabPanel>
|
|
350
|
-
<TabPanel value={value} index={
|
|
364
|
+
<TabPanel value={value} index={3}>
|
|
351
365
|
{ticket != null &&
|
|
352
366
|
<>
|
|
353
367
|
{ticketAttachments.map((attachment) => {
|
|
@@ -367,7 +381,7 @@ export const TicketDetail = ({ticketId, setIsLoading, currentUser, GoBackToViewT
|
|
|
367
381
|
</TabPanel>
|
|
368
382
|
|
|
369
383
|
{customTabName != null &&
|
|
370
|
-
<TabPanel value={value} index={
|
|
384
|
+
<TabPanel value={value} index={4}>
|
|
371
385
|
{customTabElement(customTabPayload)}
|
|
372
386
|
</TabPanel>
|
|
373
387
|
}
|