allow override of IDL class label for display in the FM editor
authorJason Etheridge <jason@EquinoxOLI.org>
Wed, 14 Dec 2022 05:51:57 +0000 (00:51 -0500)
committerJason Etheridge <jason@EquinoxOLI.org>
Wed, 14 Dec 2022 05:51:57 +0000 (00:51 -0500)
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts

index 8c1f5ba..25c7b6a 100644 (file)
@@ -271,7 +271,7 @@ export class FmRecordEditorComponent
 
         this.listifyInputs();
         this.idlDef = this.idl.classes[this.idlClass];
-        this.recordLabel = this.idlDef.label;
+        this.recordLabel = this.recordLabel || this.idlDef.label;
 
         // Add some randomness to the generated DOM IDs to ensure against clobbering
         this.idPrefix = 'fm-editor-' + Math.floor(Math.random() * 100000);