Commit 5d22cdab by Torkel Ödegaard

click on dashboard title moves you back to dashboard instead of search

parent b8b468f7
...@@ -44,7 +44,7 @@ export class GeneralTab extends PureComponent<Props> { ...@@ -44,7 +44,7 @@ export class GeneralTab extends PureComponent<Props> {
render() { render() {
return ( return (
<EditorTabBody heading="Basic Panel Options" toolbarItems={[]}> <EditorTabBody heading="Panel Options" toolbarItems={[]}>
<div ref={element => (this.element = element)} /> <div ref={element => (this.element = element)} />
</EditorTabBody> </EditorTabBody>
); );
......
...@@ -77,7 +77,7 @@ export class PanelEditor extends PureComponent<PanelEditorProps> { ...@@ -77,7 +77,7 @@ export class PanelEditor extends PureComponent<PanelEditorProps> {
const tabs = [ const tabs = [
{ id: 'queries', text: 'Queries' }, { id: 'queries', text: 'Queries' },
{ id: 'visualization', text: 'Visualization' }, { id: 'visualization', text: 'Visualization' },
{ id: 'advanced', text: 'Advanced' }, { id: 'advanced', text: 'Panel Options' },
]; ];
if (config.alertingEnabled && plugin.id === 'graph') { if (config.alertingEnabled && plugin.id === 'graph') {
......
...@@ -74,6 +74,11 @@ export class DashNavCtrl { ...@@ -74,6 +74,11 @@ export class DashNavCtrl {
} }
showSearch() { showSearch() {
if (this.dashboard.meta.fullscreen) {
this.close();
return;
}
appEvents.emit('show-dash-search'); appEvents.emit('show-dash-search');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment