Merged in bugfix/PMCORE-3512_B (pull request #8269)

PMCORE-3512

Approved-by: Fabio Guachalla
This commit is contained in:
Rodrigo Quelca
2021-11-09 15:30:16 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 10 additions and 1 deletions

View File

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

View File

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