}
this.markDamagedDialog.copyId = ids.pop();
- return this.markDamagedDialog.open({size: 'lg'}).then(
+ return this.markDamagedDialog.open({size: 'lg'}).subscribe(
ok => {
if (ok) { rowsModified = true; }
return markNext(ids);
const copyIds = this.selectedCopyIds(rows, 4 /* ignore missing */);
if (copyIds.length > 0) {
this.markMissingDialog.copyIds = copyIds;
- this.markMissingDialog.open({}).then(
+ this.markMissingDialog.open({}).subscribe(
rowsModified => {
if (rowsModified) {
this.refreshHoldings = true;
this.copyAlertsDialog.copyIds = copyIds;
this.copyAlertsDialog.mode = mode;
- this.copyAlertsDialog.open({size: 'lg'}).then(
+ this.copyAlertsDialog.open({size: 'lg'}).subscribe(
modified => {
if (modified) {
this.hardRefresh();
}
- },
- dismissed => {}
+ }
);
}
const ids = this.selectedCopyIds(rows);
if (ids.length === 0) { return; }
this.replaceBarcode.copyIds = ids;
- this.replaceBarcode.open({}).then(
+ this.replaceBarcode.open({}).subscribe(
modified => {
if (modified) {
this.hardRefresh();
}
- },
- dismissed => {}
+ }
);
}
// "both" mode.
this.deleteVolcopy.forceDeleteCopies = mode === 'both';
this.deleteVolcopy.volumes = Object.values(volHash);
- this.deleteVolcopy.open({size: 'sm'}).then(
+ this.deleteVolcopy.open({size: 'sm'}).subscribe(
modified => {
if (modified) {
this.hardRefresh();
}
- },
- dismissed => {}
+ }
);
}
if (copyIds.length > 0) {
this.bucketDialog.bucketClass = 'copy';
this.bucketDialog.itemIds = copyIds;
- this.bucketDialog.open({size: 'lg'}).then(
- // No need to reload the grid after adding items to buckets.
- ok => {},
- dismissed => {}
- );
+ this.bucketDialog.open({size: 'lg'});
}
}
const copyIds = this.selectedCopyIds(rows);
if (copyIds.length > 0) {
this.conjoinedDialog.copyIds = copyIds;
- this.conjoinedDialog.open({size: 'sm'}).then(
- ok => {}, // No grid reload required
- dismissed => {}
- );
+ this.conjoinedDialog.open({size: 'sm'});
}
}
const copyIds = this.selectedCopyIds(rows);
if (copyIds.length > 0) {
this.makeBookableDialog.copyIds = copyIds;
- this.makeBookableDialog.open({}).then(
- modified => {}, // No refresh needed
- dismissed => {}
- );
+ this.makeBookableDialog.open({});
}
}
}