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

Commit

Permalink
...Except Bravery Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Suguru Hirahara committed May 25, 2017
1 parent 388c61d commit 7527e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/renderer/components/common/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Dialog extends ImmutableComponent {
render () {
return <div className={cx({
[css(styles.dialog)]: true,
[css(styles.dialog_isNotClickDismiss)]: !this.props.isClickDismiss,
[css(styles.dialog_isNotClickDismiss)]: !this.props.isClickDismiss || this.props.isBraveryPanel,
[this.props.className]: !!this.props.className
})}
data-test-id={this.props.testId}
Expand All @@ -65,6 +65,7 @@ Dialog.propTypes = {
]),
className: PropTypes.string,
isClickDismiss: PropTypes.bool,
isBraveryPanel: PropTypes.bool,
onHide: PropTypes.func
}

Expand Down
2 changes: 1 addition & 1 deletion app/renderer/components/main/braveryPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class BraveryPanel extends ImmutableComponent {
})
const compactBraveryPanel = getSetting(settings.COMPACT_BRAVERY_PANEL)

return <Dialog onHide={this.props.onHide} testId='braveryPanelContainer' isClickDismiss>
return <Dialog onHide={this.props.onHide} testId='braveryPanelContainer' isClickDismiss isBraveryPanel>
<div className={css(
commonStyles.flyoutDialog,
styles.braveryPanel,
Expand Down

0 comments on commit 7527e4f

Please sign in to comment.