Skip to content

Commit e39b7ac

Browse files
author
Hoang Nguyen
authored
ui: fixes errors in the Console.vue (#6741)
This PR for fixes errors in the Console.vue
1 parent bf4e905 commit e39b7ac

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

ui/src/components/widgets/Console.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<script>
2929
import { SERVER_MANAGER } from '@/store/mutation-types'
3030
import { api } from '@/api'
31-
import TooltipLabel from '@/components/widgets/TooltipLabel'
3231
import { uuid } from 'vue-uuid'
3332
3433
export default {
@@ -49,19 +48,13 @@ export default {
4948
tokenValidationEnabled: false
5049
}
5150
},
52-
components: {
53-
TooltipLabel
54-
},
55-
beforeCreate () {
56-
this.form = this.$form.createForm(this)
57-
},
58-
mounted () {
51+
created () {
5952
this.verifyExtraValidationEnabled()
6053
},
6154
methods: {
6255
verifyExtraValidationEnabled () {
6356
api('listConfigurations', { name: 'consoleproxy.extra.security.validation.enabled' }).then(json => {
64-
this.tokenValidationEnabled = json.listconfigurationsresponse.configuration !== null && json.listconfigurationsresponse.configuration[0].value === 'true'
57+
this.tokenValidationEnabled = json?.listconfigurationsresponse?.configuration && json?.listconfigurationsresponse?.configuration[0]?.value === 'true'
6558
})
6659
},
6760
consoleUrl () {

0 commit comments

Comments
 (0)