Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fixes some regression that was introduced with #9899 #10071

Merged
merged 1 commit into from
Jul 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/renderer/components/navigation/menuBarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MenuBarItem extends React.Component {
props.label = template.get('label')

// used in other functions
props.submenu = template.get('submenu') && template.get('submenu').toJS()
props.submenu = template.get('submenu') && template.get('submenu').toJS() // TODO (nejc) only primitives
props.lastFocusedSelector = currentWindow.getIn(['ui', 'menubar', 'lastFocusedSelector'])
props.selectedIndex = selectedIndex

Expand Down
4 changes: 2 additions & 2 deletions app/renderer/components/navigation/navigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class NavigationBar extends React.Component {
const titleMode = activeTabShowingMessageBox ||
(
mouseInTitlebar === false &&
!bookmarkDetail &&
bookmarkDetail.isEmpty() &&
hasTitle &&
!['about:blank', 'about:newtab'].includes(location) &&
!loading &&
Expand All @@ -116,7 +116,7 @@ class NavigationBar extends React.Component {
props.isBookmarked = activeFrameKey !== undefined &&
activeTab && activeTab.get('bookmarked')
props.isWideUrlBarEnabled = getSetting(settings.WIDE_URL_BAR)
props.showBookmarkHanger = bookmarkDetail.get('isBookmarkHanger')
props.showBookmarkHanger = bookmarkDetail.get('isBookmarkHanger', false)
props.isLoading = loading
props.showPublisherToggle = publisherState.shouldShowAddPublisherButton(state, location, publisherId)
props.showHomeButton = !props.titleMode && getSetting(settings.SHOW_HOME_BUTTON)
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/components/navigation/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Navigator extends React.Component {
const activeFrameKey = activeFrame.get('key')
const activeTabId = activeFrame.get('tabId', tabState.TAB_ID_NONE)
const activeTab = tabState.getByTabId(state, activeTabId) || Immutable.Map()
const activeTabShowingMessageBox = !!(activeTab && tabState.isShowingMessageBox(state, activeTabId))
const activeTabShowingMessageBox = !!(!activeTab.isEmpty() && tabState.isShowingMessageBox(state, activeTabId))
const allSiteSettings = siteSettingsState.getAllSiteSettings(state, activeFrame)
const activeSiteSettings = siteSettings.getSiteSettingsForURL(allSiteSettings, activeFrame.get('location'))
const braverySettings = siteSettings.activeSettings(activeSiteSettings, state, appConfig)
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/components/tabs/tabPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class TabPage extends React.Component {

// used in other functions
props.sourceDragFromPageIndex = sourceDragFromPageIndex
props.isPageEmpty = tabPageFrames.size === 0
props.isPageEmpty = tabPageFrames.isEmpty()
props.moveToFrameKey = tabPageFrames.getIn([0, 'key'])

return props
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/components/tabs/tabsToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class TabsToolbar extends React.Component {

const props = {}
// used in renderer
props.hasPinnedTabs = pinnedTabs.size > 0
props.hasPinnedTabs = !pinnedTabs.isEmpty()

// used in other functions
props.activeFrameKey = activeFrame.get('key')
Expand Down