PMCORE-2620:Case Notes - Comments, the comment is sent even if the user does not have persmissions

This commit is contained in:
Rodrigo Quelca
2020-12-23 20:04:34 +00:00
parent 50b121eb41
commit 5da41377d7
2 changed files with 2 additions and 1 deletions

View File

@@ -58,7 +58,7 @@
> >
</div> </div>
<button class="btn btn-success btn-sm" @click="onClickComment"> <button class="btn btn-success btn-sm" @click="onClickComment" :disabled="data.noPerms === 1">
{{ $t("ID_SEND") }} {{ $t("ID_SEND") }}
</button> </button>
</div> </div>

View File

@@ -377,6 +377,7 @@ export default {
.casenotes(this.dataCase) .casenotes(this.dataCase)
.then((response) => { .then((response) => {
that.formatResponseCaseNotes(response.data.notes); that.formatResponseCaseNotes(response.data.notes);
that.dataComments.noPerms = response.data.noPerms || 0;
}) })
.catch((err) => { .catch((err) => {
throw new Error(err); throw new Error(err);