File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
ui/src/components/widgets Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 2828<script >
2929import { SERVER_MANAGER } from ' @/store/mutation-types'
3030import { api } from ' @/api'
31- import TooltipLabel from ' @/components/widgets/TooltipLabel'
3231import { uuid } from ' vue-uuid'
3332
3433export 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 () {
You can’t perform that action at this time.
0 commit comments