Github user robertkowalski commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/796#discussion_r85987892
--- Diff: app/addons/fauxton/base.js ---
@@ -33,50 +33,51 @@ Fauxton.initialize = function () {
FauxtonAPI.RouteObject.on('beforeEstablish', function (routeObject) {
NavigationActions.setNavbarActiveLink(_.result(routeObject,
'selectedHeader'));
+ if (!routeObject.hideApiBar) {
// always attempt to render the API Bar. Even if it's hidden on
initial load, it may be enabled later
- routeObject.setComponent('#api-navbar',
ReactComponents.ApiBarController, {
- buttonVisible: true,
- contentVisible: false
- });
-
- const apiAndDocs = routeObject.get('apiUrl');
- if (apiAndDocs) {
- ComponentActions.updateAPIBar({
+ routeObject.setComponent('#api-navbar',
ReactComponents.ApiBarController, {
buttonVisible: true,
- contentVisible: false,
- endpoint: apiAndDocs[0],
- docURL: apiAndDocs[1]
+ contentVisible: false
});
- } else {
- ComponentActions.hideAPIBarButton();
+
+ const apiAndDocs = routeObject.get('apiUrl');
+ if (apiAndDocs) {
+ ComponentActions.updateAPIBar({
+ buttonVisible: true,
+ contentVisible: false,
+ endpoint: apiAndDocs[0],
+ docURL: apiAndDocs[1]
+ });
+ } else {
+ ComponentActions.hideAPIBarButton();
+ }
}
if (!routeObject.get('hideNotificationCenter')) {
routeObject.setComponent('#notification-center-btn',
NotificationComponents.NotificationCenterButton);
}
- FauxtonAPI.masterLayout.removeView('#breadcrumbs');
-
+ //FauxtonAPI.masterLayout.removeView('#breadcrumbs');
--- End diff --
remove please
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---