PMCORE-2620:Case Notes - Comments, the comment is sent even if the user does not have persmissions
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
>
|
||||
</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") }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -377,6 +377,7 @@ export default {
|
||||
.casenotes(this.dataCase)
|
||||
.then((response) => {
|
||||
that.formatResponseCaseNotes(response.data.notes);
|
||||
that.dataComments.noPerms = response.data.noPerms || 0;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new Error(err);
|
||||
|
||||
Reference in New Issue
Block a user