mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Replace link with button component (#25446)
This commit is contained in:
parent
d62926b5a3
commit
c7e38fd47f
@ -15,7 +15,7 @@ import {
|
||||
LinkModel,
|
||||
Field,
|
||||
} from '@grafana/data';
|
||||
import { LegacyForms, LogLabels, ToggleButtonGroup, ToggleButton, LogRows } from '@grafana/ui';
|
||||
import { LegacyForms, LogLabels, ToggleButtonGroup, ToggleButton, LogRows, Button } from '@grafana/ui';
|
||||
const { Switch } = LegacyForms;
|
||||
import store from 'app/core/store';
|
||||
|
||||
@ -256,18 +256,18 @@ export class Logs extends PureComponent<Props, State> {
|
||||
{!loading && !hasData && !scanning && (
|
||||
<div className="logs-panel-nodata">
|
||||
No logs found.
|
||||
<a className="link" onClick={this.onClickScan}>
|
||||
<Button size="xs" variant="link" onClick={this.onClickScan}>
|
||||
Scan for older logs
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{scanning && (
|
||||
<div className="logs-panel-nodata">
|
||||
<span>{scanText}</span>
|
||||
<a className="link" onClick={this.onClickStopScan}>
|
||||
<Button size="xs" variant="link" onClick={this.onClickStopScan}>
|
||||
Stop scan
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user