Skip to content

Commit

Permalink
PR Feedback #2
Browse files Browse the repository at this point in the history
  • Loading branch information
grolu committed Jul 13, 2022
1 parent a8efb73 commit 14780c0
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions frontend/src/components/StaticTokenKubeconfigSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ SPDX-License-Identifier: Apache-2.0
@change="onChange"
hide-details
></v-checkbox>
<span class="text-caption">It is <span class="font-weight-bold">not</span> the recommended method to access the shoot cluster as the static token <code>kubeconfig</code> has some security flaws associated with it.</span>
<p>
<div class="text-caption mt-1">It is <strong>not</strong> the recommended method to access the shoot cluster as the static token <code>kubeconfig</code> has some security flaws associated with it.</div>
<div>
<external-link class="text-caption" url="https://github.com/gardener/gardener/blob/master/docs/usage/shoot_access.md">More information</external-link>
</p>
</div>
</div>
</template>
<script>
Expand All @@ -30,23 +30,20 @@ export default {
},
props: {
value: {
type: Boolean
type: Boolean,
required: true
}
},
data () {
return {
enableStaticTokenKubeconfig: undefined
}
},
methods: {
onChange (value) {
this.$emit('input', value)
}
},
watch: {
value: function (value) {
this.enableStaticTokenKubeconfig = value
computed: {
enableStaticTokenKubeconfig: {
get () {
return this.value
},
set (val) {
this.$emit('input', val)
}
}
}
}
</script>

0 comments on commit 14780c0

Please sign in to comment.