this.modalRef = this.modalService.show(CriticalConfirmationModalComponent, {
initialState: {
itemDescription: 'Pool',
+ itemNames: [name],
submitActionObservable: () =>
this.taskWrapper.wrapTaskAroundCall({
task: new FinishedTask(`${BASE_URL}/${URLVerbs.DELETE}`, { pool_name: name }),
const avail = stats.bytes_used.latest + stats.max_avail.latest;
pool['usage'] = avail > 0 ? stats.bytes_used.latest / avail : avail;
+ if (
+ !pool.cdExecuting &&
+ pool.pg_num + pool.pg_placement_num !== pool.pg_num_target + pool.pg_placement_num_target
+ ) {
+ pool['cdExecuting'] = 'Updating';
+ }
+
['rd_bytes', 'wr_bytes'].forEach((stat) => {
pool.stats[stat].rates = pool.stats[stat].rates.map((point) => point[1]);
});
return strings.join(', ');
}
- getPoolDetails(pool: object) {
- return _.omit(pool, ['cdExecuting', 'cdIsBinary']);
- }
-
getSelectionTiers() {
const cacheTierIds = this.selection.hasSingleSelection ? this.selection.first()['tiers'] : [];
this.selectionCacheTiers = this.pools.filter((pool) => cacheTierIds.includes(pool.pool));