<option *ngFor="let opt of filter.options">{{ opt }}</option>
</select>
</div>
+ <a class="fa-stack"
+ title="Reset filters"
+ (click)="resetFilter()">
+ <i class="fa fa-filter fa-stack-2x"></i>
+ <i class="fa fa-times fa-stack-1x" style="margin-left: 8px; margin-top: 5px;"></i>
+ </a>
</div>
<cd-configuration-details cdTableDetail
[selection]="selection">
{
label: this.i18n('Level'),
prop: 'level',
+ initValue: 'basic',
value: 'basic',
options: ['basic', 'advanced', 'dev'],
applyFilter: (row, value) => {
{
label: this.i18n('Service'),
prop: 'services',
+ initValue: 'any',
value: 'any',
options: ['any', 'mon', 'mgr', 'osd', 'mds', 'common', 'mds_client', 'rgw'],
applyFilter: (row, value) => {
{
label: this.i18n('Source'),
prop: 'source',
+ initValue: 'any',
value: 'any',
options: ['any', 'mon'],
applyFilter: (row, value) => {
updateFilter() {
this.data = [...this.data];
}
+
+ resetFilter() {
+ this.filters.forEach((item) => {
+ item.value = item.initValue;
+ });
+ this.data = [...this.data];
+ }
}