Skip to content

Commit

Permalink
Button in Settings to Open in Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jul 22, 2018
1 parent e1df9bf commit 6b81e94
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,14 @@ body.isElectron .listContainer {
margin-top: 92px;
}

body.isElectron .openInBrowserButton {
display: inline-block !important;
}

body.isElectron .openInBrowserLine {
display: block !important;
}

body.isElectron header {
display: block !important;
}
Expand Down
17 changes: 17 additions & 0 deletions src/components/Modals/components/settingsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ export default class Modals extends PureComponent {
this.state = {}
}

openInBrowser = () => {
api.get({
method: 'openInBrowser'
})
}

componentDidMount = async () => {
if (this.props.query && this.props.query.oldScroll) {
setTimeout(() => {
Expand Down Expand Up @@ -600,6 +606,17 @@ export default class Modals extends PureComponent {

<div style={{clear: 'both', height: '15px'}} />

<paper-button
raised
onClick={this.openInBrowser.bind(this)}
style={{cursor: 'pointer', float: 'none', margin: '0', fontSize: '16px', display: 'none'}}
className='playerButtons'
class="openInBrowserButton" >
Open in Browser
</paper-button>

<div className='openInBrowserLine' style={{clear: 'both', height: '15px', display: 'none'}} />

<div className="setting-header" style={{marginTop: '10px'}}>
Transcoding (for Web Player)
</div>
Expand Down

0 comments on commit 6b81e94

Please sign in to comment.