Inspect: Allow showing data without transformations and field config is applied (#24314)
* Inspect: Should not subscribe to transformed data * PQR- allow controll whether or not field overrides and transformations should be applied * UI for inspector data options * fix * Null check fix * Update public/app/features/dashboard/components/Inspector/InspectDataTab.tsx * Update public/app/features/dashboard/components/Inspector/InspectDataTab.tsx * Apply transformations by default * Update panel inspect docs * Fix apply overrides * Apply time formatting in panel inspect * fix ts * Post review update * Update docs/sources/panels/inspect-panel.md Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * lazy numbering * fix ts * Renames * Renames 2 * Layout update * Run shared request without field config * Minor details * fix ts Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
This commit is contained in:
co-authored by
Diana Payton
Dominik Prokop
parent
9e24c0944f
commit
f23ecc40b4
@@ -136,8 +136,8 @@ const getStyles = stylesFactory(
|
||||
align-items: ${align};
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: ${orientation === Orientation.Vertical && 0};
|
||||
margin-right: ${orientation === Orientation.Horizontal && 0};
|
||||
}
|
||||
`,
|
||||
};
|
||||
|
||||
@@ -7,18 +7,14 @@ export const DefaultCell: FC<TableCellProps> = props => {
|
||||
const { field, cell, tableStyles, row } = props;
|
||||
let link: LinkModel<any> | undefined;
|
||||
|
||||
if (!field.display) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const displayValue = field.display(cell.value);
|
||||
const displayValue = field.display ? field.display(cell.value) : cell.value;
|
||||
|
||||
if (field.getLinks) {
|
||||
link = field.getLinks({
|
||||
valueRowIndex: row.index,
|
||||
})[0];
|
||||
}
|
||||
const value = formattedValueToString(displayValue);
|
||||
const value = field.display ? formattedValueToString(displayValue) : displayValue;
|
||||
|
||||
return (
|
||||
<div className={tableStyles.tableCell}>
|
||||
|
||||
Reference in New Issue
Block a user