diff --git a/src/renderer/constants/modal_types.js b/src/renderer/constants/modal_types.js index 9c6d457f9..8e56e8237 100644 --- a/src/renderer/constants/modal_types.js +++ b/src/renderer/constants/modal_types.js @@ -2,6 +2,7 @@ export const CONFIRM_FILE_REMOVE = 'confirmFileRemove'; export const INCOMPATIBLE_DAEMON = 'incompatibleDaemon'; export const FILE_TIMEOUT = 'file_timeout'; export const DOWNLOADING = 'downloading'; +export const AUTO_UPDATE_DOWNLOADED = "auto_update_downloaded"; export const ERROR = 'error'; export const INSUFFICIENT_CREDITS = 'insufficient_credits'; export const UPGRADE = 'upgrade'; diff --git a/src/renderer/modal/modalAutoUpdateDownloaded/index.js b/src/renderer/modal/modalAutoUpdateDownloaded/index.js new file mode 100644 index 000000000..921271126 --- /dev/null +++ b/src/renderer/modal/modalAutoUpdateDownloaded/index.js @@ -0,0 +1,5 @@ +import React from "react"; +import { connect } from "react-redux"; +import ModalAutoUpdateDownloaded from "./view"; + +export default connect(null, null)(ModalAutoUpdateDownloaded); diff --git a/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx b/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx new file mode 100644 index 000000000..46803c645 --- /dev/null +++ b/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx @@ -0,0 +1,31 @@ +import React from "react"; +import { Modal } from "modal/modal"; +import { Line } from "rc-progress"; +import Link from "component/link/index"; + +const { remote } = require("electron"); +const { autoUpdater } = remote.require("electron-updater"); + +class ModalAutoUpdateDownloaded extends React.PureComponent { + render() { + return ( + + + {__("LBRY Leveled Up")} + + {__( + "A new version of LBRY has been downloaded and is ready to install." + )} + + + + ); + } +} + +export default ModalAutoUpdateDownloaded; diff --git a/src/renderer/modal/modalRouter/view.jsx b/src/renderer/modal/modalRouter/view.jsx index b2d68fbf2..81925c966 100644 --- a/src/renderer/modal/modalRouter/view.jsx +++ b/src/renderer/modal/modalRouter/view.jsx @@ -2,6 +2,7 @@ import React from 'react'; import ModalError from 'modal/modalError'; import ModalAuthFailure from 'modal/modalAuthFailure'; import ModalDownloading from 'modal/modalDownloading'; +import ModalAutoUpdateDownloaded from "modal/modalAutoUpdateDownloaded"; import ModalUpgrade from 'modal/modalUpgrade'; import ModalWelcome from 'modal/modalWelcome'; import ModalFirstReward from 'modal/modalFirstReward'; @@ -102,6 +103,8 @@ class ModalRouter extends React.PureComponent { return ; case modals.DOWNLOADING: return ; + case modals.AUTO_UPDATE_DOWNLOADED: + return ; case modals.ERROR: return ; case modals.FILE_TIMEOUT:
+ {__( + "A new version of LBRY has been downloaded and is ready to install." + )} +