mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: improve dashboard fullscreen text (#15139)
This commit is contained in:
parent
856a2bd5ed
commit
57035c1b93
@ -112,7 +112,7 @@ test('should render the menu items', async () => {
|
||||
expect(screen.getByText('Refresh dashboard')).toBeInTheDocument();
|
||||
expect(screen.getByText('Set auto-refresh interval')).toBeInTheDocument();
|
||||
expect(screen.getByText('Download as image')).toBeInTheDocument();
|
||||
expect(screen.getByText('Toggle fullscreen')).toBeInTheDocument();
|
||||
expect(screen.getByText('Enter fullscreen')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('should render the menu items in edit mode', async () => {
|
||||
|
@ -307,7 +307,9 @@ class HeaderActionsDropdown extends React.PureComponent {
|
||||
|
||||
{!editMode && (
|
||||
<Menu.Item key={MENU_KEYS.TOGGLE_FULLSCREEN}>
|
||||
{t('Toggle fullscreen')}
|
||||
{getUrlParam(URL_PARAMS.standalone)
|
||||
? t('Exit fullscreen')
|
||||
: t('Enter fullscreen')}
|
||||
</Menu.Item>
|
||||
)}
|
||||
</Menu>
|
||||
|
Loading…
Reference in New Issue
Block a user