From: Galen Charlton Date: Sat, 5 Feb 2022 17:57:45 +0000 (-0500) Subject: LP#1929749: tweaks to LI note/alert interface X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5595a9f260e19f158bf01bf5f71761e27f094212;p=working%2FEvergreen.git LP#1929749: tweaks to LI note/alert interface - Change the label from "Notes" to "Notes and Alerts" in the LI summary - Visually split the notes and alerts form and add a separate field for alert comments. This makes no particular different to functionality, as LI notes and alerts feed into the same database table, but may make it easier for users to work with the interface. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html index 418dd3ace6..588b83978c 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html @@ -375,10 +375,10 @@ | - event_note - Notes ({{li.lineitem_notes().length}}) + Notes and Alerts ({{li.lineitem_notes().length}}) flag diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.html index 25f393cad1..c4b32c2f0e 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.html @@ -12,14 +12,17 @@ + (click)="newNote()" i18n>Create Note +
|
+ - + close diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.ts index 963470d39d..14f82e6beb 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/notes.component.ts @@ -14,6 +14,7 @@ export class LineitemNotesComponent implements OnInit, AfterViewInit { @Input() lineitem: IdlObject; noteText: string; + alertComments: string; vendorPublic = false; alertEntry: ComboboxEntry; @@ -46,10 +47,11 @@ export class LineitemNotesComponent implements OnInit, AfterViewInit { const note = this.idl.create('acqlin'); note.isnew(true); note.lineitem(this.lineitem.id()); - note.value(this.noteText || ''); if (isAlert) { + note.value(this.alertComments || ''); note.alert_text(this.alertEntry.id); } else { + note.value(this.noteText || ''); note.vendor_public(this.vendorPublic ? 't' : 'f'); }