Skip to content

Commit aca2e18

Browse files
ENGCOM-5860: Resolve No error message when click 'Import Tax Rates' without select file issue24642 #24643
- Merge Pull Request #24643 from edenduong/magento2:2.3-bugfix/message_error_import_tax_issue24642 - Merged commits: 1. 77562da
2 parents 3ee05a4 + 77562da commit aca2e18

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/code/Magento/TaxImportExport/i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ Rate,Rate
1818
CSV,CSV
1919
"Excel XML","Excel XML"
2020
"Import/Export Tax Rates","Import/Export Tax Rates"
21+
"Please select a file to import!","Please select a file to import!"
22+

app/code/Magento/TaxImportExport/view/adminhtml/templates/importExport.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</form>
3232
<?php endif; ?>
3333
<script>
34-
require(['jquery', "mage/mage", "loadingPopup"], function(jQuery){
34+
require(['jquery', 'Magento_Ui/js/modal/alert', "mage/mage", "loadingPopup", 'mage/translate'], function(jQuery, uiAlert){
3535

3636
jQuery('#import-form').mage('form').mage('validation');
3737
(function ($) {
@@ -42,6 +42,10 @@ require(['jquery', "mage/mage", "loadingPopup"], function(jQuery){
4242
});
4343

4444
$(this.form).submit();
45+
} else {
46+
uiAlert({
47+
content: $.mage.__('Please select a file to import!')
48+
});
4549
}
4650
});
4751
})(jQuery);

0 commit comments

Comments
 (0)