Added translated text

This commit is contained in:
Abhishek Kathuria 2022-07-20 18:46:04 +05:30
parent 5183cd5c9a
commit 01b0b8e4e8
3 changed files with 7 additions and 3 deletions

View File

@ -155,6 +155,8 @@ trait ProvideDataGridPlus
'recordsFound' => __('admin::app.admin.system.records-found'), 'recordsFound' => __('admin::app.admin.system.records-found'),
'norecords' => __('ui::app.datagrid.no-records'), 'norecords' => __('ui::app.datagrid.no-records'),
'massActionDelete' => __('ui::app.datagrid.massaction.delete'), 'massActionDelete' => __('ui::app.datagrid.massaction.delete'),
'emptyField' => __('ui::app.datagrid.empty-field'),
'emptyValue' => __('ui::app.datagrid.empty-value'),
]; ];
} }
} }

View File

@ -515,7 +515,7 @@ export default {
getResponse: function() { getResponse: function() {
if (this.type == null) { if (this.type == null) {
alert("Please select the filter"); alert(this.translations.emptyField);
} }
let label = ''; let label = '';
@ -532,7 +532,7 @@ export default {
if (this.types.string.value !== null) { if (this.types.string.value !== null) {
this.emitOnFilterEvent('string', label, true); this.emitOnFilterEvent('string', label, true);
} else { } else {
alert("Please enter the value"); alert(this.translations.emptyValue);
} }
break; break;
} }
@ -549,7 +549,7 @@ export default {
alert(this.translations.zeroIndex); alert(this.translations.zeroIndex);
} else { } else {
alert("Please enter the value"); alert(this.translations.emptyValue);
} }
if (indexConditions) { if (indexConditions) {

View File

@ -51,5 +51,7 @@ return [
'edit' => 'Edit', 'edit' => 'Edit',
'delete' => 'Delete', 'delete' => 'Delete',
'view' => 'View', 'view' => 'View',
'empty-field' => 'Please select the filter',
'empty-value' => 'Please enter the value',
], ],
]; ];