mirror of https://github.com/rancher/dashboard.git
Fix reactivity in `NameNsDescription.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
31646c2eae
commit
bb941571e2
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue