* setup application for contract
This commit is contained in:
@@ -74,6 +74,7 @@ export default {
|
||||
deregister() {
|
||||
misapply(this.selectedContract)
|
||||
this.closeModal()
|
||||
this.$router.go()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,12 +60,15 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['closeModal']),
|
||||
apply(role) {
|
||||
async apply(role) {
|
||||
const id = this.selectedContract
|
||||
if (id === null) {
|
||||
router.push('/error?message=' + 'Contract not found' + '&code=404')
|
||||
}
|
||||
applyContract(id, role)
|
||||
//contractID, prefRole, userName, userPhone, userEmail
|
||||
await applyContract(id, role, this.$store.state.keycloak.keycloak.tokenParsed.name, '', this.$store.state.keycloak.keycloak.tokenParsed.email)
|
||||
this.closeModal()
|
||||
this.$router.go()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user