From: Galen Charlton Date: Tue, 7 Dec 2021 19:25:42 +0000 (-0500) Subject: LP#1942220: add confirmation step to deleting LIs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=42d793e6964c4008ffe7920f6bb49aa5aa8654d6;p=working%2FEvergreen.git LP#1942220: add confirmation step to deleting LIs - also tidy up when the action is avaialble - also tidy up handling of selected LIs post-deletion - also reload the page only once - add TODO about decreasing parallelism - TODO: toss up spinner? Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/delete-lineitems-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/delete-lineitems-dialog.component.html new file mode 100644 index 0000000000..c819dc0b59 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/delete-lineitems-dialog.component.html @@ -0,0 +1,28 @@ + +
+ + + +
+
+ diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/delete-lineitems-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/delete-lineitems-dialog.component.ts new file mode 100644 index 0000000000..21c6ecea46 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/delete-lineitems-dialog.component.ts @@ -0,0 +1,17 @@ +import {Component, Input, ViewChild, TemplateRef, OnInit} from '@angular/core'; +import {NgbModal} from '@ng-bootstrap/ng-bootstrap'; +import {DialogComponent} from '@eg/share/dialog/dialog.component'; +import {IdlService, IdlObject} from '@eg/core/idl.service'; +import {ComboboxEntry} from '@eg/share/combobox/combobox.component'; + +@Component({ + selector: 'eg-acq-delete-lineitems-dialog', + templateUrl: './delete-lineitems-dialog.component.html' +}) + +export class DeleteLineitemsDialogComponent extends DialogComponent { + @Input() ids: number[]; + constructor(private modal: NgbModal) { super(modal); } +} + + 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 c4e3c8dbba..a560505ceb 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 @@ -1,6 +1,7 @@ +
@@ -11,7 +12,7 @@ Add Brief Record + [disabled]="!canDeleteLis() || !selectedIds().length" i18n>Delete Selected Lineitems