* add new comment

feature: #11
This commit is contained in:
2023-01-12 14:26:48 +01:00
parent 15ab49ad7f
commit 71331b046d
3 changed files with 45 additions and 2 deletions

View File

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