URL parameter or setting to auto-hide navbar on dashboard view

Asked by Rob P on 2012-04-05

Hello,
  As the subject states. I would like to know if there is a way to launch the dashboard view with the navigation bar already collapsed.

Thanks,
Rob.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Rob P
Solved:
2012-04-06
Last query:
2012-04-06
Last reply:
2012-04-06
Michael Leinartas (mleinartas) said : #1

This was added in r591 which will be in the next release. The change makes it so that loading a new dashboard view shows the nav bar, but loading an existing dashboard loads the nav bar collapsed

Rob P (rabi3) said : #2

Makes sense. Thanks for the response.

Chris Toomey (ctoomey) said : #3

I'm using version 0.9.10 and am not seeing this behavior. If I enter a dashboard URL of the form http://.../dashboard/#name it loads with the nav bar open. Did this not make it in after all?

Jason Clint (jtclint-e) said : #4

+1 to this looks like this got added:

  // Load initial dashboard state if it was passed in
  if (initialState) {
    applyState(initialState);
    navBar.collapse();
  }

but isn't working correctly.

Jan-Helge (jhberges) said : #5

Seems that the global variable in dashboard/index.html in the first <head><script> stanza, does not get set later on.

Looking at the function getInitialState() at line 2269 of dashboard.js, it seems to only update the graph particulars (nevermind the ambiguity of get/set -- but the global var is unchanged.)

Then the altered code mentioned above by Jason Clint wil never be executed (the global var always being NULL).

It's a bit difficult to se what the intent is, with a simple glance - but perhaps the global was intented to be set by the "getInitialState()" (or a return value from that method?)

// JHB

Björn Skoglund (bsk) said : #6

Hello!, Has there been any updates to this issue? We believe we're seeing the problem in 0.9.12 as well.

I also have the same problem, an old instance running 0.9.10 seems to work fine, a brand new one running 0.9.12-3 doesn't.

Actually, my issue seems to be related to the fact that sharing dashboards doesn't seem to be working for me, they come up empty with the completer.