Skip to content

Commit

Permalink
added translation, space
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Kathuria committed Apr 11, 2023
1 parent 9a41998 commit f3ea79a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/Webkul/Ui/publishable/assets/js/ui.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public function getTranslations()
'active' => __('ui::app.datagrid.active'),
'inactive' => __('ui::app.datagrid.inactive'),
'clearAll' => __('ui::app.datagrid.clear-all'),
'of' => __('ui::app.datagrid.of'),
'selected' => __('ui::app.datagrid.selected'),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default {
massActionTargets: [],
url: this.src,
indexes: [],
massActionsToggle:false,
massActionsToggle: false,
itemCount: 0
};
},
Expand Down Expand Up @@ -175,7 +175,6 @@ export default {
.then(function (response) {
if (response.status === 200) {
let results = response.data;
console.log(results);
if (
! results.records.data.length &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
></button>
</form>

<div class="item-count" v-if="itemCount"> {{ itemCount }} of {{ total }} selected</div>
<div class="item-count" v-if="itemCount"> {{ itemCount }} {{ translations.of }} {{ total }} {{ translations.selected }}</div>

<template v-if="filters.length > 0">
<datagrid-filter-tag
Expand Down Expand Up @@ -110,8 +110,8 @@ export default {
'dataId',
'massActionsToggle',
'extraFilters',
"itemCount",
"total"
'itemCount',
'total'
],
components: {
Expand Down Expand Up @@ -144,6 +144,7 @@ export default {
},
changeMassActionTarget: function() {
console.log(this.translations);
if (this.massActionType === 'delete') {
for (let i in this.massActionTargets) {
if (this.massActionTargets[i].type === 'delete') {
Expand Down
4 changes: 3 additions & 1 deletion packages/Webkul/Ui/src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
'all-locales' => 'All Locales',
'all-customer-groups' => 'All Customer groups',
'records-found' => 'Record(s) found',
'clear-all' => 'Clear All'
'clear-all' => 'Clear All',
'of' => 'of',
'selected' => 'selected',
],
];

0 comments on commit f3ea79a

Please sign in to comment.