-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally enable endpoints-dashboard via env var for use in cf push #1221
Conversation
richard-cox
commented
Aug 15, 2017
•
edited
Loading
edited
- Disable the endpoint-dashboard at runtime if env var is present
- Plugins can now add config to the console-info call
- endpoint-dashboard now has a backend component
- If env var 'DISABLE_ENDPOINT_DASHBOARD' is present add 'disabled' to component config
- Handle disabled dashboard in frontend..
- Do not add to menu
- Do not redirect to dashboard if no endpoints present
- Remove from env.plugins
- Fixed endpoint dashboard 'on logged in' message for admin's when there are no connected endpoints
- Speed up logged in process by making calls async
- Improved unit tests
- Plugins can now add config to the console-info call - Add backend component to endpoint-dashboard -- If env var 'DISABLE_ENDPOINT_DASHBOARD' is present add 'disabled' to component config - Handle disabled dashboard in frontend.. -- Do not add to menu -- Do not redirect to dashboard if no endpoints present -- Remove from env.plugins - Fixed endpoint on logged in message for admin's when there are no connected endpoints - Speed up logged in process by making 3 calls async - Improved unit tests
- Switch logic from 'disable' flag to 'enable' (true by default) - Updated docs - Prooved cf push with/wuthout flag
function init() { | ||
return initialized.promise; | ||
} | ||
var config = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove config object
change updateConfig to be isDashboardDisabled() that returns the value
function onLoggedIn() { | ||
var menu = modelManager.retrieve('app.model.navigation').menu; | ||
menu.addMenuItem('endpoints', 'endpoint.dashboard', 'menu.endpoints', 2, 'settings_input_component'); | ||
initialized.resolve(); | ||
} | ||
|
||
function getDashboardRedirect() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we consider a clearer name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM