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>
|
</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>
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user