mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* Add integration with Jeager Add Jaeger datasource and modify derived fields in loki to allow for opening a trace in Jager in separate split. Modifies build so that this branch docker images are pushed to docker hub Add a traceui dir with docker-compose and provision files for demoing.:wq * Enable docker logger plugin to send logs to loki * Add placeholder zipkin datasource * Fixed rebase issues, added enhanceDataFrame to non-legacy code path * Trace selector for jaeger query field * Fix logs default mode for Loki * Fix loading jaeger query field services on split * Updated grafana image in traceui/compose file * Fix prettier error * Hide behind feature flag, clean up unused code. * Fix tests * Fix tests * Cleanup code and review feedback * Remove traceui directory * Remove circle build changes * Fix feature toggles object * Fix merge issues * Add trace ui in Explore * WIP * WIP * WIP * Make jaeger datasource return trace data instead of link * Allow js in jest tests * Return data from Jaeger datasource * Take yarn.lock from master * Fix missing component * Update yarn lock * Fix some ts and lint errors * Fix merge * Fix type errors * Make tests pass again * Add tests * Fix es5 compatibility Co-authored-by: David Kaltschmidt <david.kaltschmidt@gmail.com>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import React from 'react';
|
|
import { css, cx } from 'emotion';
|
|
import { stylesFactory } from '@grafana/ui';
|
|
|
|
type Props = {
|
|
addQueryRowButtonDisabled?: boolean;
|
|
richHistoryButtonActive?: boolean;
|
|
addQueryRowButtonHidden?: boolean;
|
|
onClickAddQueryRowButton: () => void;
|
|
onClickRichHistoryButton: () => void;
|
|
};
|
|
|
|
const getStyles = stylesFactory(() => {
|
|
return {
|
|
button: css`
|
|
margin: 1em 4px 0 0;
|
|
`,
|
|
};
|
|
});
|
|
export function SecondaryActions(props: Props) {
|
|
const styles = getStyles();
|
|
return (
|
|
<div className="gf-form">
|
|
{!props.addQueryRowButtonHidden && (
|
|
<button
|
|
aria-label="Add row button"
|
|
className={`gf-form-label gf-form-label--btn ${styles.button}`}
|
|
onClick={props.onClickAddQueryRowButton}
|
|
disabled={props.addQueryRowButtonDisabled}
|
|
>
|
|
<i className={'fa fa-fw fa-plus icon-margin-right'} />
|
|
<span className="btn-title">{'\xA0' + 'Add query'}</span>
|
|
</button>
|
|
)}
|
|
<button
|
|
aria-label="Rich history button"
|
|
className={cx(`gf-form-label gf-form-label--btn ${styles.button}`, {
|
|
['explore-active-button']: props.richHistoryButtonActive,
|
|
})}
|
|
onClick={props.onClickRichHistoryButton}
|
|
>
|
|
<i className={'fa fa-fw fa-history icon-margin-right '} />
|
|
<span className="btn-title">{'\xA0' + 'Query history'}</span>
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|