PMCORE-3512: Any user can claim a case
fix code style
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user