White label updater dialog
This commit is contained in:
@@ -35,7 +35,7 @@ function UpdaterPage(props) {
|
||||
<h1 className='UpdaterPage-heading'>{'New update is available'}</h1>
|
||||
</Navbar>
|
||||
<div className='container-fluid'>
|
||||
<p>{'A new version of the Mattermost Desktop App is available!'}</p>
|
||||
<p>{`A new version of the ${props.appName} is available!`}</p>
|
||||
<p>{'Read the '}
|
||||
<a
|
||||
href='#'
|
||||
@@ -84,6 +84,7 @@ function UpdaterPage(props) {
|
||||
}
|
||||
|
||||
UpdaterPage.propTypes = {
|
||||
appName: propTypes.string.isRequired,
|
||||
notifyOnly: propTypes.bool.isRequired,
|
||||
isDownloading: propTypes.bool.isRequired,
|
||||
progress: propTypes.number,
|
||||
|
@@ -6,7 +6,7 @@ import url from 'url';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import propTypes from 'prop-types';
|
||||
import {ipcRenderer} from 'electron';
|
||||
import {ipcRenderer, remote} from 'electron';
|
||||
|
||||
import UpdaterPage from './components/UpdaterPage.jsx';
|
||||
|
||||
@@ -35,6 +35,7 @@ class UpdaterPageContainer extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<UpdaterPage
|
||||
appName={`${remote.app.getName()} Desktop App`}
|
||||
notifyOnly={this.props.notifyOnly}
|
||||
{...this.state}
|
||||
onClickReleaseNotes={() => {
|
||||
|
Reference in New Issue
Block a user