PMCORE-3512: Any user can claim a case

fix code style
This commit is contained in:
Rodrigo Quelca
2021-11-09 14:06:50 +00:00
parent 0909b42d13
commit 37aebd76d9
2 changed files with 10 additions and 1 deletions

View File

@@ -104,7 +104,7 @@
></attached-documents-edit> ></attached-documents-edit>
</div> </div>
</div> </div>
<ModalClaimCase ref="modal-claim-case"></ModalClaimCase> <ModalClaimCase ref="modal-claim-case" @claimCatch="claimCatch"></ModalClaimCase>
</div> </div>
</template> </template>
@@ -640,6 +640,12 @@ export default {
console.error(e); console.error(e);
}); });
}, },
/**
* Claim catch error handler message
*/
claimCatch(message) {
this.showAlert(message, "danger");
}
}, },
}; };
</script> </script>

View File

@@ -78,6 +78,9 @@ export default {
}); });
eventBus.$emit("home-update-page", "XCase"); eventBus.$emit("home-update-page", "XCase");
} }
}).catch(function (error) {
that.$refs["modal-claim-case"].hide();
that.$emit("claimCatch", error.response.data.error.message);
}); });
}, },
}, },