diff --git a/components/form/LabeledInput.vue b/components/form/LabeledInput.vue index abaef58ef6..fc6ef23917 100644 --- a/components/form/LabeledInput.vue +++ b/components/form/LabeledInput.vue @@ -12,12 +12,6 @@ export default { type: String, default: 'text', }, - // if true, hide placeholder text until field is focused, then show until field has value - // If false, show placeholder text until field is focused - hidePlaceholder: { - type: Boolean, - default: false - }, mode: { type: String, default: _EDIT @@ -59,20 +53,12 @@ export default { onFocus() { this.onFocusLabeled(); - if (this.hidePlaceholder) { - this.actualPlaceholder = `${ this.placeholder }`; - } else { - this.actualPlaceholder = ''; - } + this.actualPlaceholder = ''; }, onBlur() { this.onBlurLabeled(); - if (this.hidePlaceholder) { - this.actualPlaceholder = null; - } else { - this.actualPlaceholder = `${ this.placeholder }`; - } + this.actualPlaceholder = `${ this.placeholder }`; } } }; diff --git a/config/labels-annotations.js b/config/labels-annotations.js index c3c8abd54b..2b3b634288 100644 --- a/config/labels-annotations.js +++ b/config/labels-annotations.js @@ -16,32 +16,14 @@ export const NODE_ROLES = { ETCD: 'node-role.kubernetes.io/etcd', }; +// TODO consult w/ backend about what labels & annotations to hide from editing export const LABEL_PREFIX_TO_IGNORE = [ - 'io.cattle.lifecycle.', - 'beta.kubernetes.io/', - 'failure-domain.beta.kubernetes.io/', - 'node-role.kubernetes.io/', - 'kubernetes.io/', - 'cattle.io/', - 'authz.management.cattle.io', - 'rke.cattle.io', - 'field.cattle.io', - 'workload.user.cattle.io/', - 'k3s.io', - 'node.kubernetes.io', ]; export const ANNOTATIONS_TO_IGNORE_CONTAINS = [ - 'coreos.com/', - 'cattle.io/', - 'k3s.io', ]; export const ANNOTATIONS_TO_IGNORE_PREFIX = [ - 'kubernetes.io/', - 'beta.kubernetes.io/', - 'node.alpha.kubernetes.io/', - 'volumes.kubernetes.io/', - 'k3s.io', + DESCRIPTION ] ; diff --git a/detail/secret.vue b/detail/secret.vue index e2fe2d17cd..ed3ea1925f 100644 --- a/detail/secret.vue +++ b/detail/secret.vue @@ -6,11 +6,14 @@ import DetailTop from '@/components/DetailTop'; import SortableTable from '@/components/SortableTable'; import { KEY, VALUE } from '@/config/table-headers'; import { base64Decode } from '@/utils/crypto'; +import CreateEditView from '@/mixins/create-edit-view'; + export default { components: { DetailTop, SortableTable, }, + mixins: [CreateEditView], props: { value: { type: Object, @@ -147,5 +150,29 @@ export default { /> + + + + + + + + diff --git a/edit/admin.rio.cattle.io.publicdomain.vue b/edit/admin.rio.cattle.io.publicdomain.vue index 4a34cf34a7..30663ab756 100644 --- a/edit/admin.rio.cattle.io.publicdomain.vue +++ b/edit/admin.rio.cattle.io.publicdomain.vue @@ -156,8 +156,7 @@ export default {