-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgr/dashboard: support creating OSDs on spare devices (ceph#30921)
mgr/dashboard: support creating OSDs on spare devices Reviewed-by: Tiago Melo <[email protected]> Reviewed-by: Volker Theile <[email protected]> Reviewed-by: Laura Paduano <[email protected]>
- Loading branch information
Showing
51 changed files
with
2,018 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...pp/ceph/cluster/inventory/inventory-devices/inventory-device-applied-filters.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface InventoryDeviceAppliedFilter { | ||
label: string; | ||
prop: string; | ||
value: string; | ||
formatValue: string; | ||
} |
13 changes: 13 additions & 0 deletions
13
...end/src/app/ceph/cluster/inventory/inventory-devices/inventory-device-filter.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { PipeTransform } from '@angular/core'; | ||
|
||
export interface InventoryDeviceFilter { | ||
label: string; | ||
prop: string; | ||
initValue: string; | ||
value: string; | ||
options: { | ||
value: string; | ||
formatValue: string; | ||
}[]; | ||
pipe?: PipeTransform; | ||
} |
8 changes: 8 additions & 0 deletions
8
...ph/cluster/inventory/inventory-devices/inventory-device-filters-change-event.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { InventoryDeviceAppliedFilter } from './inventory-device-applied-filters.interface'; | ||
import { InventoryDevice } from './inventory-device.model'; | ||
|
||
export interface InventoryDeviceFiltersChangeEvent { | ||
filters: InventoryDeviceAppliedFilter[]; | ||
filterInDevices: InventoryDevice[]; | ||
filterOutDevices: InventoryDevice[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...rontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<cd-table [data]="filterInDevices" | ||
[columns]="columns" | ||
identifier="uid" | ||
[forceIdentifier]="true" | ||
[selectionType]="selectionType" | ||
columnMode="flex" | ||
[autoReload]="false" | ||
[searchField]="false"> | ||
<div class="table-filters form-inline" | ||
*ngIf="filters.length !== 0"> | ||
<div class="form-group filter tc_filter" | ||
*ngFor="let filter of filters"> | ||
<label class="col-form-label"><span>{{ filter.label }}</span><span>: </span></label> | ||
<select class="custom-select" | ||
[(ngModel)]="filter.value" | ||
[ngModelOptions]="{standalone: true}" | ||
(ngModelChange)="onFilterChange()" | ||
[disabled]="filter.disabled"> | ||
<option *ngFor="let opt of filter.options" | ||
[value]="opt.value">{{ opt.formatValue }}</option> | ||
</select> | ||
</div> | ||
<div class="widget-toolbar tc_refreshBtn" | ||
*ngIf="filters.length !== 0"> | ||
<button type="button" | ||
title="Reset filters" | ||
class="btn btn-light" | ||
(click)="onFilterReset()"> | ||
<span [ngClass]="[icons.stack]"> | ||
<i [ngClass]="[icons.filter, icons.stack2x]"></i> | ||
<i [ngClass]="[icons.destroy, icons.stack1x]"></i> | ||
</span> | ||
</button> | ||
</div> | ||
</div> | ||
</cd-table> | ||
|
||
<ng-template #osds | ||
let-value="value"> | ||
<span *ngFor="let osdId of value; last as last"> | ||
<span class="badge badge-dark">osd.{{ osdId }}</span> | ||
<span *ngIf="!last"> </span> | ||
</span> | ||
</ng-template> |
12 changes: 12 additions & 0 deletions
12
...rontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.filter { | ||
padding-right: 8px; | ||
} | ||
|
||
.fa-stack { | ||
font-size: 0.79rem; | ||
|
||
.fa-stack-1x { | ||
margin-left: 8px; | ||
margin-top: 5px; | ||
} | ||
} |
Oops, something went wrong.