Merged in bugfix/PMCORE-3159 (pull request #8091)
PMCORE-3159 Approved-by: Rodrigo Quelca
This commit is contained in:
@@ -93,20 +93,18 @@ export default {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (
|
if (response.status === 200) {
|
||||||
response.data.success === "success" &&
|
|
||||||
response.data.message == ""
|
|
||||||
) {
|
|
||||||
that.attachDocuments = false;
|
that.attachDocuments = false;
|
||||||
that.dataAttachedDocuments.items = [];
|
that.dataAttachedDocuments.items = [];
|
||||||
that.getCasesNotes();
|
that.getCasesNotes();
|
||||||
this.$refs["modal-comments"].hide();
|
this.$refs["modal-comments"].hide();
|
||||||
this.$emit("postNotes");
|
this.$emit("postNotes");
|
||||||
} else {
|
|
||||||
that.showAlert(response.data.message, "danger");
|
|
||||||
that.dataAttachedDocuments.items = [];
|
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
that.showAlert(error.response.data.error.message, "danger");
|
||||||
|
that.dataAttachedDocuments.items = [];
|
||||||
|
})
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user