superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Added possibility to translate the phrase 'No results found' in FilterBox (#7796)
Date Thu, 04 Jul 2019 04:52:40 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c17c19  Added possibility to translate the phrase 'No results found' in FilterBox
(#7796)
8c17c19 is described below

commit 8c17c1927937362a22c07d1362f00992e56621a1
Author: Daniel Serkowski <serkowskidaniel@gmail.com>
AuthorDate: Thu Jul 4 06:52:34 2019 +0200

    Added possibility to translate the phrase 'No results found' in FilterBox (#7796)
---
 superset/assets/src/components/OnPasteSelect.jsx           | 1 +
 superset/assets/src/visualizations/FilterBox/FilterBox.jsx | 1 +
 2 files changed, 2 insertions(+)

diff --git a/superset/assets/src/components/OnPasteSelect.jsx b/superset/assets/src/components/OnPasteSelect.jsx
index 955c922..91eadc8 100644
--- a/superset/assets/src/components/OnPasteSelect.jsx
+++ b/superset/assets/src/components/OnPasteSelect.jsx
@@ -94,6 +94,7 @@ OnPasteSelect.propTypes = {
   multi: PropTypes.bool.isRequired,
   value: PropTypes.any,
   isValidNewOption: PropTypes.func,
+  noResultsText: PropTypes.string,
 };
 OnPasteSelect.defaultProps = {
   separator: [',', '\n', '\t'],
diff --git a/superset/assets/src/visualizations/FilterBox/FilterBox.jsx b/superset/assets/src/visualizations/FilterBox/FilterBox.jsx
index 1d61c79..4ec01af 100644
--- a/superset/assets/src/visualizations/FilterBox/FilterBox.jsx
+++ b/superset/assets/src/visualizations/FilterBox/FilterBox.jsx
@@ -250,6 +250,7 @@ class FilterBox extends React.Component {
         selectComponent={Creatable}
         selectWrap={VirtualizedSelect}
         optionRenderer={VirtualizedRendererWrap(opt => opt.label)}
+        noResultsText={t('No results found')}
       />);
   }
 


Mime
View raw message