Tweak embedded pages config name

This commit is contained in:
J. Ryan Stinnett 2019-02-08 13:55:23 +00:00
parent 7a15bb65c4
commit 705c3248d4
3 changed files with 3 additions and 3 deletions

View file

@ -459,7 +459,7 @@ const LoggedInView = React.createClass({
case PageTypes.HomePage: case PageTypes.HomePage:
{ {
const pagesConfig = this.props.config.pages; const pagesConfig = this.props.config.embeddedPages;
let pageUrl = null; let pageUrl = null;
if (pagesConfig) { if (pagesConfig) {
pageUrl = pagesConfig.homeUrl; pageUrl = pagesConfig.homeUrl;

View file

@ -24,7 +24,7 @@ export default class Welcome extends React.PureComponent {
const EmbeddedPage = sdk.getComponent('structures.EmbeddedPage'); const EmbeddedPage = sdk.getComponent('structures.EmbeddedPage');
const LanguageSelector = sdk.getComponent('auth.LanguageSelector'); const LanguageSelector = sdk.getComponent('auth.LanguageSelector');
const pagesConfig = SdkConfig.get().pages; const pagesConfig = SdkConfig.get().embeddedPages;
let pageUrl = null; let pageUrl = null;
if (pagesConfig) { if (pagesConfig) {
pageUrl = pagesConfig.welcomeUrl; pageUrl = pagesConfig.welcomeUrl;

View file

@ -30,7 +30,7 @@ export class TopLeftMenu extends React.Component {
hasHomePage() { hasHomePage() {
const config = SdkConfig.get(); const config = SdkConfig.get();
const pagesConfig = config.pages; const pagesConfig = config.embeddedPages;
if (pagesConfig && pagesConfig.homeUrl) { if (pagesConfig && pagesConfig.homeUrl) {
return true; return true;
} }