mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
use objects.save in display layouts and new folder
This commit is contained in:
parent
9f6bfa2351
commit
09c4e610af
@ -630,7 +630,7 @@ export default {
|
||||
object.identifier = identifier;
|
||||
object.location = parentKeyString;
|
||||
|
||||
this.openmct.objects.mutate(object, 'created', Date.now());
|
||||
this.openmct.objects.save(object);
|
||||
|
||||
return object;
|
||||
},
|
||||
|
@ -72,7 +72,8 @@ export default class NewFolderAction {
|
||||
folderType.definition.initialize(objectModel);
|
||||
objectModel.name = name || 'New Folder';
|
||||
|
||||
this._openmct.objects.mutate(objectModel, 'created', Date.now());
|
||||
this._openmct.objects.save(objectModel);
|
||||
|
||||
composition.add(objectModel);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user