Skip to content

Commit

Permalink
fix: improve dashboard fullscreen text (#15139)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiezhongfu committed Jun 14, 2021
1 parent 856a2bd commit 57035c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -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 () => {
Expand Down
Expand Up @@ -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>
Expand Down

0 comments on commit 57035c1

Please sign in to comment.