<eg-grid-toolbar-action
i18n-group group="Add" i18n-label label="Add Items To Bucket"
(onClick)="openBucketDialog($event)">
- Z</eg-grid-toolbar-action>
+ </eg-grid-toolbar-action>
+
+ <!-- row actions: Booking -->
+
+ <eg-grid-toolbar-action
+ i18n-group group="Booking" i18n-label label="Book Item Now"
+ (onClick)="bookItems($event)">
+ </eg-grid-toolbar-action>
+ <eg-grid-toolbar-action
+ i18n-group group="Booking" i18n-label label="Make Items Bookable"
+ (onClick)="makeBookable($event)">
+ </eg-grid-toolbar-action>
+
<!-- row actions: Edit -->
<eg-grid-toolbar-action
);
}
}
+
+ bookItems(rows: HoldingsEntry[]) {
+ const copyIds = this.selectedCopyIds(rows);
+ if (copyIds.length > 0) {
+ alert('TODO');
+ }
+ }
+
+ makeBookable(rows: HoldingsEntry[]) {
+ const copyIds = this.selectedCopyIds(rows);
+ if (copyIds.length > 0) {
+ alert('TODO');
+ }
+ }
}