Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57035c1

Browse files
authored
fix: improve dashboard fullscreen text (apache#15139)
1 parent 856a2bd commit 57035c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/HeaderActionsDropdown.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ test('should render the menu items', async () => {
112112
expect(screen.getByText('Refresh dashboard')).toBeInTheDocument();
113113
expect(screen.getByText('Set auto-refresh interval')).toBeInTheDocument();
114114
expect(screen.getByText('Download as image')).toBeInTheDocument();
115-
expect(screen.getByText('Toggle fullscreen')).toBeInTheDocument();
115+
expect(screen.getByText('Enter fullscreen')).toBeInTheDocument();
116116
});
117117

118118
test('should render the menu items in edit mode', async () => {

superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ class HeaderActionsDropdown extends React.PureComponent {
307307

308308
{!editMode && (
309309
<Menu.Item key={MENU_KEYS.TOGGLE_FULLSCREEN}>
310-
{t('Toggle fullscreen')}
310+
{getUrlParam(URL_PARAMS.standalone)
311+
? t('Exit fullscreen')
312+
: t('Enter fullscreen')}
311313
</Menu.Item>
312314
)}
313315
</Menu>

0 commit comments

Comments
 (0)