Skip to content

Commit

Permalink
fixes #809
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Dec 4, 2013
1 parent 1b7c142 commit 7db55c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions hawtio-static-site/src/main/webapp/vendor.js
@@ -1,5 +1,10 @@
// lets disable jolokia

// enable the Site plugin
(function (Site) {
Site.sitePluginEnabled = true;
})(Site || {});

// default the perspective
(function (Perspective) {
Perspective.defaultPerspective = "website";
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/perspective/js/metadata.ts
Expand Up @@ -88,6 +88,7 @@ module Perspective {
},
website: {
label: "WebSite",
isValid: (workspace) => Site.sitePluginEnabled && Site.isSiteNavBarValid(),
lastPage: "#/site/doc/index.md",
topLevelTabs: {
includes: [
Expand Down
4 changes: 3 additions & 1 deletion hawtio-web/src/main/webapp/app/site/js/siteHelpers.ts
Expand Up @@ -3,7 +3,9 @@
*/
module Site {

export var sitePluginEnabled = false;

export function isSiteNavBarValid() {
return true;
return Site.sitePluginEnabled;
}
}

0 comments on commit 7db55c2

Please sign in to comment.