* setup application for contract

This commit is contained in:
2023-01-16 17:29:26 +01:00
parent 0b3a261ecf
commit 7d03a8563a
7 changed files with 39 additions and 27 deletions

View File

@@ -74,6 +74,7 @@ export default {
deregister() {
misapply(this.selectedContract)
this.closeModal()
this.$router.go()
}
}
}

View File

@@ -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()
}
}
}