Merged in bugfix/PMCORE-3159 (pull request #8091)

PMCORE-3159

Approved-by: Rodrigo Quelca
This commit is contained in:
Fabio Guachalla
2021-09-01 12:19:10 +00:00
committed by Rodrigo Quelca

View File

@@ -93,20 +93,18 @@ export default {
})
)
.then((response) => {
if (
response.data.success === "success" &&
response.data.message == ""
) {
if (response.status === 200) {
that.attachDocuments = false;
that.dataAttachedDocuments.items = [];
that.getCasesNotes();
this.$refs["modal-comments"].hide();
this.$emit("postNotes");
} else {
that.showAlert(response.data.message, "danger");
that.dataAttachedDocuments.items = [];
this.$emit("postNotes");
}
});
})
.catch((error) => {
that.showAlert(error.response.data.error.message, "danger");
that.dataAttachedDocuments.items = [];
})
},
};
},