clone add new to label
This commit is contained in:
parent
e073fc718c
commit
7bda4a6b22
|
@ -19,7 +19,7 @@ export class DmpCloneDialogEditorModel implements CloneDmpPersist {
|
||||||
public fromModel(item: Dmp): DmpCloneDialogEditorModel {
|
public fromModel(item: Dmp): DmpCloneDialogEditorModel {
|
||||||
if (item) {
|
if (item) {
|
||||||
this.id = item.id;
|
this.id = item.id;
|
||||||
this.label = item.label;
|
this.label = item.label + " New";
|
||||||
this.description = item.description;
|
this.description = item.description;
|
||||||
if (item.descriptions) { this.descriptions = item.descriptions.map(x => x.id); }
|
if (item.descriptions) { this.descriptions = item.descriptions.map(x => x.id); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue