PMCORE-3017-E

This commit is contained in:
Henry Jordan
2021-06-01 19:58:39 +00:00
parent 88bd085c5b
commit b80b0f25b1
6 changed files with 15 additions and 39 deletions

View File

@@ -224,10 +224,7 @@ export default {
})
)
.then((response) => {
if (
response.data.success === "success" &&
response.data.message == ""
) {
if (response.status === 200 ) {
that.attachDocuments = false;
that.dataAttachedDocuments.items = [];
that.getCasesNotes();
@@ -416,7 +413,7 @@ export default {
Api.caseNotes
.get(this.dataCase)
.then((response) => {
that.formatResponseCaseNotes(response.data.notes);
that.formatResponseCaseNotes(response.data.data);
that.dataComments.noPerms = response.data.noPerms || 0;
})
.catch((err) => {
@@ -430,12 +427,12 @@ export default {
n.id = _.random(1000000);
notesArray.push({
user: that.nameFormatCases(
n.USR_FIRSTNAME,
n.USR_LASTNAME,
n.USR_USERNAME
n.usr_firstname,
n.usr_lastname,
n.usr_username
),
date: n.NOTE_DATE,
comment: n.NOTE_CONTENT,
date: n.note_date,
comment: n.note_content,
data: n
});
});