Skip to content

Commit

Permalink
Made success toast strings translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Jan 28, 2022
1 parent 9664c8b commit 5c7bd15
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/views/CRUD/chart/ChartList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function ChartList(props: ChartListProps) {
const handleChartImport = () => {
showImportModal(false);
refreshData();
addSuccessToast('Chart imported');
addSuccessToast(t('Chart imported'));
};

const canCreate = hasPerm('can_write');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function DashboardList(props: DashboardListProps) {
const handleDashboardImport = () => {
showImportModal(false);
refreshData();
addSuccessToast('Dashboard imported');
addSuccessToast(t('Dashboard imported'));
};

const { userId } = props.user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
const handleDatabaseImport = () => {
showImportModal(false);
refreshData();
addSuccessToast('Database imported');
addSuccessToast(t('Database imported'));
};

const openDatabaseDeleteModal = (database: DatabaseObject) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const DatasetList: FunctionComponent<DatasetListProps> = ({
const handleDatasetImport = () => {
showImportModal(false);
refreshData();
addSuccessToast('Dataset imported');
addSuccessToast(t('Dataset imported'));
};

const canEdit = hasPerm('can_write');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function SavedQueryList({
const handleSavedQueryImport = () => {
showImportModal(false);
refreshData();
addSuccessToast('Query imported');
addSuccessToast(t('Query imported'));
};

const canCreate = hasPerm('can_write');
Expand Down

0 comments on commit 5c7bd15

Please sign in to comment.