mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
Move duplicate fixes (#3947)
* Changed text of form labels; * Corrected case of "Location" in Duplicate action; * changed from objects.mutate to objects.save for duplicate action name change * handling cancel of move Co-authored-by: charlesh88 <charles.f.hacskaylo@nasa.gov>
This commit is contained in:
@ -71,7 +71,8 @@ export default class DuplicateAction {
|
||||
|
||||
updateNameCheck(object, name) {
|
||||
if (object.name !== name) {
|
||||
this.openmct.objects.mutate(object, 'name', name);
|
||||
object.name = name;
|
||||
this.openmct.objects.save(object);
|
||||
}
|
||||
}
|
||||
|
||||
@ -95,7 +96,7 @@ export default class DuplicateAction {
|
||||
cssClass: "l-input-lg"
|
||||
},
|
||||
{
|
||||
name: "location",
|
||||
name: "Location",
|
||||
cssClass: "grows",
|
||||
control: "locator",
|
||||
validate: this.validate(object, parent),
|
||||
|
Reference in New Issue
Block a user