Skip to content

Commit

Permalink
Merge pull request #646 from mesosphere/feature/add-navbar-mountpoint
Browse files Browse the repository at this point in the history
Feature/add navbar mountpoint
  • Loading branch information
Orlando Hohmeier committed Feb 19, 2016
2 parents 3325c65 + 33d7622 commit ce663d0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/css/components/dropdown.less
Expand Up @@ -2,6 +2,11 @@
* Dropdown
* ==============
*/

.dropdown-header {
font-size: @base-font-size; /* Bootstrap override */
}

.dropdown {
margin: 0 0 @base-spacing-unit*2 0;

Expand Down Expand Up @@ -56,9 +61,5 @@
width: 100%;
}
}

.text-danger {
color: @text-color-danger-light;
}
}
}
5 changes: 5 additions & 0 deletions src/css/layout/text.less
Expand Up @@ -2,6 +2,11 @@
* Text
* ==============
*/

.text-danger {
color: @text-color-danger-light;
}

.text-warning {
color: @starship;
}
Expand Down
4 changes: 4 additions & 0 deletions src/js/components/Marathon.jsx
Expand Up @@ -13,6 +13,7 @@ import EditAppModalComponent from "../components/modals/EditAppModalComponent";
import HelpModalComponent from "../components/modals/HelpModalComponent";
import NavTabsComponent from "../components/NavTabsComponent";
import HelpMenuComponent from "./HelpMenuComponent";
import PluginMountPointComponent from "../components/PluginMountPointComponent";

import AppsActions from "../actions/AppsActions";
import DeploymentActions from "../actions/DeploymentActions";
Expand All @@ -23,6 +24,7 @@ import PluginActions from "../actions/PluginActions";
import "../plugin/PluginInterface";
import PluginStore from "../stores/PluginStore";
import PluginEvents from "../events/PluginEvents";
import PluginMountPoints from "../plugin/shared/PluginMountPoints";

import tabs from "../constants/tabs";

Expand Down Expand Up @@ -276,6 +278,8 @@ var Marathon = React.createClass({
<div className="nav navbar-nav navbar-right">
<AppListFilterComponent />
<HelpMenuComponent />
<PluginMountPointComponent
placeId={PluginMountPoints.NAVBAR_TOP_RIGHT} />
</div>
</div>
</nav>
Expand Down
3 changes: 2 additions & 1 deletion src/js/plugin/shared/PluginMountPoints.js
@@ -1,7 +1,8 @@
import Util from "../../helpers/Util";

const PluginMountPoints = {
"SIDEBAR_BOTTOM": "SIDEBAR_BOTTOM"
"SIDEBAR_BOTTOM": "SIDEBAR_BOTTOM",
"NAVBAR_TOP_RIGHT": "NAVBAR_TOP_RIGHT",
};

export default Util.fixObject(PluginMountPoints, "PLUGIN_MOUNT_POINTS_");

0 comments on commit ce663d0

Please sign in to comment.