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

Asked by Rob P

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Rob P (rabi3) said :
#2

Makes sense. Thanks for the response.

Revision history for this message
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?

Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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.

Revision history for this message
Christopher May-Townsend (s-chrzs-q) said :
#7

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.

Revision history for this message
Christopher May-Townsend (s-chrzs-q) said :
#8

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.