@@ -49,6 +49,7 @@
|
||||
<script>
|
||||
import { mapActions } from 'vuex'
|
||||
import { applyContract } from '../../service/ContractsService'
|
||||
import router from '../../router/index'
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
@@ -61,7 +62,7 @@ export default {
|
||||
apply(role) {
|
||||
const id = this.selectedContract
|
||||
if (id === null) {
|
||||
//TODO: router push error page
|
||||
router.push('/error?message=' + 'Contract not found' + '&code=404')
|
||||
}
|
||||
applyContract(id, role)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user