diff --git a/web/src/App.js b/web/src/App.js index f58058eb..d0add296 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -51,6 +51,7 @@ import PaymentEditPage from "./PaymentEditPage"; import AccountPage from "./account/AccountPage"; import HomePage from "./basic/HomePage"; import CustomGithubCorner from "./CustomGithubCorner"; +import * as Conf from "./Conf"; import * as Auth from "./auth/Auth"; import SignupPage from "./auth/SignupPage"; @@ -434,20 +435,24 @@ class App extends Component { ); - res.push( - - - {i18next.t("general:Products")} - - - ); - res.push( - - - {i18next.t("general:Payments")} - - - ); + + if (Conf.EnableExtraPages) { + res.push( + + + {i18next.t("general:Products")} + + + ); + res.push( + + + {i18next.t("general:Payments")} + + + ); + } + res.push( diff --git a/web/src/Conf.js b/web/src/Conf.js index a15761d0..2a597d01 100644 --- a/web/src/Conf.js +++ b/web/src/Conf.js @@ -17,3 +17,5 @@ export const GithubRepo = "https://github.com/casdoor/casdoor"; export const ForceLanguage = ""; export const DefaultLanguage = "en"; + +export const EnableExtraPages = false;