} from '@eg/staff/share/buckets/bucket-dialog.component';
import {ConjoinedItemsDialogComponent
} from '@eg/staff/share/holdings/conjoined-items-dialog.component';
+import {MakeBookableDialogComponent
+ } from '@eg/staff/share/booking/make-bookable-dialog.component';
// The holdings grid models a single HoldingsTree, composed of HoldingsTreeNodes
// flattened on-demand into a list of HoldingEntry objects.
private bucketDialog: BucketDialogComponent;
@ViewChild('conjoinedDialog')
private conjoinedDialog: ConjoinedItemsDialogComponent;
+ @ViewChild('makeBookableDialog')
+ private makeBookableDialog: MakeBookableDialogComponent;
holdingsTree: HoldingsTree;
makeBookable(rows: HoldingsEntry[]) {
const copyIds = this.selectedCopyIds(rows);
if (copyIds.length > 0) {
- alert('TODO');
+ this.makeBookableDialog.copyIds = copyIds;
+ this.makeBookableDialog.open({}).then(
+ modified => {}, // No refresh needed
+ dismissed => {}
+ )
}
}
}