* hotfix on logging in
bug-fix: no-task
This commit is contained in:
@@ -96,9 +96,15 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isVerwaltung() {
|
isVerwaltung() {
|
||||||
|
if (this.$store.state.keycloak.keycloak === null) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return this.$store.state.keycloak.keycloak.realmAccess.roles.includes('verwaltung')
|
return this.$store.state.keycloak.keycloak.realmAccess.roles.includes('verwaltung')
|
||||||
},
|
},
|
||||||
isAnonym() {
|
isAnonym() {
|
||||||
|
if (this.$store.state.keycloak.keycloak === null) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
return this.$store.state.keycloak.isAnonym
|
return this.$store.state.keycloak.isAnonym
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['fetchOpenContracts', 'openModal']),
|
...mapActions(['fetchOpenContracts', 'openModal']),
|
||||||
selectContract(ID) {
|
selectContract(ID) {
|
||||||
console.log(ID)
|
|
||||||
this.$store.commit('setSelectedContract', ID)
|
this.$store.commit('setSelectedContract', ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user