mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 17:01:41 +00:00
set namespace for malformed identifiers
This commit is contained in:
parent
830f321f90
commit
613973d936
@ -66,10 +66,11 @@ export default class CreateAction extends PropertiesAction {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const parentDomainObject = parentDomainObjectPath[0];
|
const parentDomainObject = parentDomainObjectPath[0];
|
||||||
|
const namespace = parentDomainObject.identifier.namespace || parentDomainObject.key;
|
||||||
|
|
||||||
this.domainObject.modified = Date.now();
|
this.domainObject.modified = Date.now();
|
||||||
this.domainObject.location = this.openmct.objects.makeKeyString(parentDomainObject.identifier);
|
this.domainObject.location = this.openmct.objects.makeKeyString(parentDomainObject.identifier);
|
||||||
this.domainObject.identifier.namespace = parentDomainObject.identifier.namespace;
|
this.domainObject.identifier.namespace = namespace;
|
||||||
|
|
||||||
// Show saving progress dialog
|
// Show saving progress dialog
|
||||||
let dialog = this.openmct.overlays.progressDialog({
|
let dialog = this.openmct.overlays.progressDialog({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user