Skip to content

Commit

Permalink
change flag name to hideMainScreenTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Jan 16, 2017
1 parent 5dd1826 commit aa531c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class Base extends EventEmitter {

const getScreenTitle = (m) => {
// if it is the first screen and the flag is enabled, it should hide the title
return l.ui.hideFistPageTitle(m) && screen.isFirstScreen(m)
return l.ui.hideMainScreenTitle(m) && screen.isFirstScreen(m)
? null
: title;
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function stopRendering(m) {
function extractUIOptions(id, options) {
const closable = options.container ? false : undefined === options.closable ? true : !!options.closable;
const theme = options.theme || {};
const { labeledSubmitButton, hideFistPageTitle, logo, primaryColor, authButtons } = theme;
const { labeledSubmitButton, hideMainScreenTitle, logo, primaryColor, authButtons } = theme;

const avatar = options.avatar !== null;
const customAvatarProvider = options.avatar
Expand All @@ -142,7 +142,7 @@ function extractUIOptions(id, options) {
avatarProvider: avatarProvider,
logo: typeof logo === "string" ? logo : undefined,
closable: closable,
hideFistPageTitle: !!hideFistPageTitle,
hideMainScreenTitle: !!hideMainScreenTitle,
labeledSubmitButton: undefined === labeledSubmitButton ? true : !!labeledSubmitButton,
language: undefined === options.language ? "en" : trim(options.language || "").toLowerCase(),
dict: typeof options.languageDictionary === "object" ? options.languageDictionary : {},
Expand Down Expand Up @@ -180,7 +180,7 @@ export const ui = {
dict: lock => getUIAttribute(lock, "dict"),
disableWarnings: lock => getUIAttribute(lock, "disableWarnings"),
labeledSubmitButton: lock => getUIAttribute(lock, "labeledSubmitButton"),
hideFistPageTitle: lock => getUIAttribute(lock, "hideFistPageTitle"),
hideMainScreenTitle: lock => getUIAttribute(lock, "hideMainScreenTitle"),
language: lock => getUIAttribute(lock, "language"),
logo: lock => getUIAttribute(lock, "logo"),
mobile: lock => getUIAttribute(lock, "mobile"),
Expand Down

0 comments on commit aa531c1

Please sign in to comment.