Clear All Filter Added
This commit is contained in:
parent
c6c27815a1
commit
dd7cc8cfb2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"/js/ui.js": "/js/ui.js?id=3200019bb5cc4b0a434e",
|
||||
"/css/ui.css": "/css/ui.css?id=d37fc925848045c24ee5"
|
||||
"/js/ui.js": "/js/ui.js?id=934e73015300b1ae35f5",
|
||||
"/css/ui.css": "/css/ui.css?id=13c7619285c1caa172f8"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ trait ProvideDataGridPlus
|
|||
'emptyValue' => __('ui::app.datagrid.empty-value'),
|
||||
'active' => __('ui::app.datagrid.active'),
|
||||
'inactive' => __('ui::app.datagrid.inactive'),
|
||||
'clearAll' => __('ui::app.datagrid.clear-all'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@
|
|||
:filters="filters"
|
||||
:translations="translations"
|
||||
@onRemoveFilter="removeFilter($event)"
|
||||
@onRemoveAllFilter="clearAllFilters()"
|
||||
></datagrid-filter-tags>
|
||||
|
||||
<div class="records-count-container">
|
||||
|
|
@ -455,6 +456,12 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
clearAllFilters() {
|
||||
this.filters = [];
|
||||
|
||||
this.makeURL();
|
||||
},
|
||||
|
||||
changePage($event) {
|
||||
const { pageLink } = $event.data;
|
||||
|
|
@ -463,7 +470,7 @@ export default {
|
|||
this.url = pageLink;
|
||||
this.refresh();
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
v-for="(filter, filterKey) in filters"
|
||||
@onRemoveFilter="removeFilter(filter)"
|
||||
></datagrid-filter-tag>
|
||||
|
||||
<p @click="removeAllFilters" v-if="filters.length > 0">{{ translations.clearAll }}</p>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -29,6 +31,10 @@ export default {
|
|||
methods: {
|
||||
removeFilter(filter) {
|
||||
this.$emit('onRemoveFilter', { data: { filter } });
|
||||
},
|
||||
|
||||
removeAllFilters() {
|
||||
this.$emit('onRemoveAllFilter');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@
|
|||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 10px;
|
||||
|
||||
p {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.search-filter {
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'كل اللغات',
|
||||
'all-customer-groups' => 'جميع مجموعات العملاء',
|
||||
'records-found' => 'جميع مجموعات العملاء',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Alle Lokalitäten',
|
||||
'all-customer-groups' => 'Alle Kundengruppen',
|
||||
'records-found' => 'Datensätze gefunden',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -59,5 +59,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Todas las localidades',
|
||||
'all-customer-groups' => 'Todos los grupos de clientes',
|
||||
'records-found' => 'Registro(s) encontrado(s)',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'همه افراد محلی',
|
||||
'all-customer-groups' => 'همه گروه های مشتری',
|
||||
'records-found' => 'رکورد(های) یافت شده',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Tutti i locali',
|
||||
'all-customer-groups' => 'Tutti i gruppi di clienti',
|
||||
'records-found' => 'Record trovati',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Alle locaties',
|
||||
'all-customer-groups' => 'Alle klantgroepen',
|
||||
'records-found' => 'Record(s) gevonden',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Wszystkie lokalizacje',
|
||||
'all-customer-groups' => 'Wszystkie grupy klientów',
|
||||
'records-found' => 'Znaleziono rekord(y)',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Todos os locais',
|
||||
'all-customer-groups' => 'Todos os grupos de clientes',
|
||||
'records-found' => 'Registro(s) encontrado(s)',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'All Locales',
|
||||
'all-customer-groups' => 'All Customer groups',
|
||||
'records-found' => 'Record(s) found',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => 'Tüm Yerel Ayarlar',
|
||||
'all-customer-groups' => 'Tüm Müşteri grupları',
|
||||
'records-found' => 'Kayıt(lar) bulundu',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -57,5 +57,6 @@ return [
|
|||
'all-locales' => '所有語言環境',
|
||||
'all-customer-groups' => '所有客戶組',
|
||||
'records-found' => '找到記錄',
|
||||
'clear-all' => 'Clear All'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue