From: Bill Erickson Date: Wed, 14 Aug 2019 20:45:20 +0000 (-0400) Subject: LP1840050 FM Editor WIP X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5891f536200c7fe20883d289dbd04182a4cdaa9b;p=working%2FEvergreen.git LP1840050 FM Editor WIP Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor-action.component.html b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor-action.component.html new file mode 100644 index 0000000000..139597f9cb --- /dev/null +++ b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor-action.component.html @@ -0,0 +1,2 @@ + + diff --git a/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor-action.component.ts b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor-action.component.ts new file mode 100644 index 0000000000..fbc718fc75 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor-action.component.ts @@ -0,0 +1,26 @@ +import {Component, Input, Output, EventEmitter, Host} from '@angular/core'; +import {FmRecordEditorComponent} from './fm-editor.component'; + +@Component({ + selector: 'eg-fm-record-editor-action', + template: '' // no-op +}) + +export class FmRecordEditorActionComponent { + + // unique identifier + @Input() key: string; + + @Input() label: string; + + // Emits the 'key' of the clicked action. + @Output() actionClick: EventEmitter; + + @Input() disabled: boolean; + + constructor(@Host() private editor: FmRecordEditorComponent) { + this.actionClick = new EventEmitter(); + this.editor.actions.push(this); + } +} +