Fix reactivity in `NameNsDescription.vue`

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
Phillip Rak 2024-08-06 10:14:59 -07:00 committed by Cody Jackson
parent 31646c2eae
commit bb941571e2
1 changed files with 4 additions and 4 deletions

View File

@ -323,12 +323,12 @@ export default {
} else { } else {
this.value.metadata['name'] = val; this.value.metadata['name'] = val;
} }
this.$emit('change'); this.$emit('update:value', this.value);
}, },
namespace(val) { namespace(val) {
this.updateNamespace(val); this.updateNamespace(val);
this.$emit('change'); this.$emit('update:value', this.value);
}, },
description(val) { description(val) {
@ -337,7 +337,7 @@ export default {
} else { } else {
this.value.setAnnotation(DESCRIPTION, val); this.value.setAnnotation(DESCRIPTION, val);
} }
this.$emit('change'); this.$emit('update:value', this.value);
}, },
}, },
@ -386,7 +386,7 @@ export default {
true, true,
); );
this.$emit('isNamespaceNew', true); this.$emit('isNamespaceNew', true);
nextTick(() => this.$refs.namespace.focus()); this.$nextTick(() => this.$refs.namespace.focus());
} else { } else {
this.createNamespace = false; this.createNamespace = false;
this.$store.dispatch( this.$store.dispatch(