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

This commit is contained in:
Torkel Ödegaard 2018-12-07 13:50:50 +01:00
parent b8b468f733
commit 5d22cdab28
3 changed files with 7 additions and 2 deletions

View File

@ -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>
); );

View File

@ -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') {

View File

@ -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');
} }