mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Navigation: Add Cancel button to Import dashboard page (#61187)
This commit is contained in:
parent
256f640e19
commit
84ebee026c
@ -4,7 +4,7 @@ import { connect, ConnectedProps } from 'react-redux';
|
|||||||
|
|
||||||
import { AppEvents, GrafanaTheme2, LoadingState, NavModelItem } from '@grafana/data';
|
import { AppEvents, GrafanaTheme2, LoadingState, NavModelItem } from '@grafana/data';
|
||||||
import { selectors } from '@grafana/e2e-selectors';
|
import { selectors } from '@grafana/e2e-selectors';
|
||||||
import { reportInteraction } from '@grafana/runtime';
|
import { config, reportInteraction } from '@grafana/runtime';
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Field,
|
Field,
|
||||||
@ -20,6 +20,7 @@ import {
|
|||||||
withTheme2,
|
withTheme2,
|
||||||
DropzoneFile,
|
DropzoneFile,
|
||||||
FileDropzoneDefaultChildren,
|
FileDropzoneDefaultChildren,
|
||||||
|
LinkButton,
|
||||||
} from '@grafana/ui';
|
} from '@grafana/ui';
|
||||||
import appEvents from 'app/core/app_events';
|
import appEvents from 'app/core/app_events';
|
||||||
import { Page } from 'app/core/components/Page/Page';
|
import { Page } from 'app/core/components/Page/Page';
|
||||||
@ -172,9 +173,14 @@ class UnthemedDashboardImport extends PureComponent<Props> {
|
|||||||
rows={10}
|
rows={10}
|
||||||
/>
|
/>
|
||||||
</Field>
|
</Field>
|
||||||
<Button type="submit" data-testid={selectors.components.DashboardImportPage.submit}>
|
<HorizontalGroup>
|
||||||
Load
|
<Button type="submit" data-testid={selectors.components.DashboardImportPage.submit}>
|
||||||
</Button>
|
Load
|
||||||
|
</Button>
|
||||||
|
<LinkButton variant="secondary" href={`${config.appSubUrl}/dashboards`}>
|
||||||
|
Cancel
|
||||||
|
</LinkButton>
|
||||||
|
</HorizontalGroup>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Form>
|
</Form>
|
||||||
|
Loading…
Reference in New Issue
Block a user