(null);
const [queryParams, updateQueryParams] = useQueryParams();
@@ -68,9 +66,6 @@ export const OptionsPaneCategory = React.memo(
}, [forceOpen, isExpanded, isOpenFromUrl]);
const onToggle = useCallback(() => {
- if (!isOpenable) {
- return;
- }
manualClickTime.current = Date.now();
updateQueryParams(
{
@@ -80,7 +75,7 @@ export const OptionsPaneCategory = React.memo(
);
setSavedState({ isExpanded: !isExpanded });
setIsExpanded(!isExpanded);
- }, [isOpenable, updateQueryParams, isExpanded, id, setSavedState]);
+ }, [updateQueryParams, isExpanded, id, setSavedState]);
if (!renderTitle) {
renderTitle = function defaultTitle(isExpanded: boolean) {
@@ -106,7 +101,6 @@ export const OptionsPaneCategory = React.memo(
);
const headerStyles = cx(styles.header, {
- [styles.headerHover]: isOpenable,
[styles.headerExpanded]: isExpanded,
[styles.headerNested]: isNested,
});
@@ -129,19 +123,18 @@ export const OptionsPaneCategory = React.memo(
- {isOpenable ? (
-
- ) : null}
+
+
{isExpanded && (
@@ -179,8 +172,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
padding: theme.spacing(0.5, 1.5),
color: theme.colors.text.primary,
fontWeight: theme.typography.fontWeightMedium,
- }),
- headerHover: css({
cursor: 'pointer',
'&:hover': {
background: theme.colors.emphasize(theme.colors.background.primary, 0.03),
diff --git a/public/app/features/dashboard/components/PanelEditor/OptionsPaneCategoryDescriptor.tsx b/public/app/features/dashboard/components/PanelEditor/OptionsPaneCategoryDescriptor.tsx
index bb1c76969d1..854b5be01e7 100644
--- a/public/app/features/dashboard/components/PanelEditor/OptionsPaneCategoryDescriptor.tsx
+++ b/public/app/features/dashboard/components/PanelEditor/OptionsPaneCategoryDescriptor.tsx
@@ -16,7 +16,6 @@ export interface OptionsPaneCategoryDescriptorProps {
itemsCount?: number;
customRender?: () => React.ReactNode;
sandboxId?: string;
- isOpenable?: boolean;
}
/**
@@ -60,8 +59,12 @@ export class OptionsPaneCategoryDescriptor {
return this.props.customRender();
}
- if (this.props.id === '') {
- return {this.items.map((item) => item.render(searchQuery))};
+ if (this.props.title === '') {
+ return (
+
+ {this.items.map((item) => item.render(searchQuery))}
+
+ );
}
return (
diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json
index cef94684d01..43f96108203 100644
--- a/public/locales/en-US/grafana.json
+++ b/public/locales/en-US/grafana.json
@@ -1068,23 +1068,18 @@
"elements": {
"dashboard": "Dashboard",
"objects": "Objects",
+ "panel": "Panel",
"panels": "Panels",
+ "row": "Row",
"rows": "Rows",
+ "tab": "Tab",
"tabs": "Tabs"
},
- "objects": {
- "multi-select": {
- "selection-number": "No. of objects selected: {{length}}"
- }
- },
"open": "Open options pane",
"row": {
"header": {
"hide": "Hide",
"title": "Row header"
- },
- "multi-select": {
- "title": "{{length}} rows selected"
}
}
},
@@ -1165,13 +1160,11 @@
"copy-or-duplicate": "Copy or Duplicate",
"delete": "Delete",
"duplicate": "Duplicate",
- "layout": "Layout",
- "panels-title": "{{length}} panels selected"
+ "layout": "Layout"
}
},
"options": {
"description": "Description",
- "title": "Dashboard options",
"title-option": "Title"
},
"outline": {
@@ -1214,7 +1207,6 @@
},
"rows-layout": {
"description": "Rows layout",
- "item-name": "Row",
"name": "Rows",
"option": {
"height": "Height",
@@ -1253,9 +1245,6 @@
"menu": {
"move-tab": "Move tab"
},
- "multi-select": {
- "title": "{{length}} tabs selected"
- },
"name": "Tabs",
"tab": {
"menu": {
@@ -1270,7 +1259,6 @@
"new": "New tab"
},
"tab-options": {
- "title": "Tab",
"title-option": "Title"
}
},
@@ -1345,9 +1333,8 @@
"viz-panel": {
"options": {
"description": "Description",
- "open-edit": "Open Panel Edit",
+ "open-edit": "Open panel editor",
"plugin-type-image": "Image of plugin type",
- "title": "Panel",
"title-option": "Title",
"transparent-background": "Transparent background"
}