Merge pull request #6612 from akathuria289/issue_5463

Fixed issue #5463
This commit is contained in:
Jitendra Singh 2022-08-03 11:01:18 +05:30 committed by GitHub
commit 07c2ebc7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 42 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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"
}

View File

@ -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'),
];
}
}

View File

@ -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>

View File

@ -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');
}
}
};

View File

@ -72,6 +72,10 @@
align-items: flex-start;
flex-wrap: wrap;
margin-bottom: 10px;
p {
cursor: pointer;
}
}
.search-filter {

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'كل اللغات',
'all-customer-groups' => 'جميع مجموعات العملاء',
'records-found' => 'جميع مجموعات العملاء',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'Alle Lokalitäten',
'all-customer-groups' => 'Alle Kundengruppen',
'records-found' => 'Datensätze gefunden',
'clear-all' => 'Clear All'
],
];

View File

@ -59,5 +59,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -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'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'همه افراد محلی',
'all-customer-groups' => 'همه گروه های مشتری',
'records-found' => 'رکورد(های) یافت شده',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -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'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'Alle locaties',
'all-customer-groups' => 'Alle klantgroepen',
'records-found' => 'Record(s) gevonden',
'clear-all' => 'Clear All'
],
];

View File

@ -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'
],
];

View File

@ -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'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
],
];

View File

@ -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'
],
];

View File

@ -57,5 +57,6 @@ return [
'all-locales' => '所有語言環境',
'all-customer-groups' => '所有客戶組',
'records-found' => '找到記錄',
'clear-all' => 'Clear All'
],
];