Browse Source

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

Torkel Ödegaard 7 years ago
parent
commit
5d22cdab28

+ 1 - 1
public/app/features/dashboard/dashgrid/GeneralTab.tsx

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

+ 1 - 1
public/app/features/dashboard/dashgrid/PanelEditor.tsx

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

+ 5 - 0
public/app/features/dashboard/dashnav/dashnav.ts

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