Skip to content

Commit

Permalink
chore: Translates the favorite filter param (apache#16990)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Oct 6, 2021
1 parent d9a23e3 commit 19d64b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion superset-frontend/src/views/CRUD/welcome/ChartTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ function ChartTable({
onClick: () => {
const target =
chartFilter === 'Favorite'
? '/chart/list/?filters=(favorite:(label:Yes,value:!t))'
? `/chart/list/?filters=(favorite:(label:${t(
'Yes',
)},value:!t))`
: '/chart/list/';
history.push(target);
},
Expand Down
4 changes: 3 additions & 1 deletion superset-frontend/src/views/CRUD/welcome/DashboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ function DashboardTable({
onClick: () => {
const target =
dashboardFilter === 'Favorite'
? '/dashboard/list/?filters=(favorite:(label:Yes,value:!t))'
? `/dashboard/list/?filters=(favorite:(label:${t(
'Yes',
)},value:!t))`
: '/dashboard/list/';
history.push(target);
},
Expand Down

0 comments on commit 19d64b5

Please sign in to comment.