2017-12-08 11:08:50 +01:00
|
|
|
import React from "react";
|
|
|
|
import { Modal } from "modal/modal";
|
|
|
|
import { Line } from "rc-progress";
|
|
|
|
import Link from "component/link/index";
|
|
|
|
|
2017-12-10 09:06:30 +01:00
|
|
|
const { ipcRenderer } = require("electron");
|
2017-12-08 11:08:50 +01:00
|
|
|
|
|
|
|
class ModalAutoUpdateDownloaded extends React.PureComponent {
|
|
|
|
render() {
|
2018-01-17 11:50:02 +01:00
|
|
|
const { closeModal, declineAutoUpdate } = this.props;
|
2017-12-22 07:42:04 +01:00
|
|
|
|
2017-12-08 11:08:50 +01:00
|
|
|
return (
|
|
|
|
<Modal
|
|
|
|
isOpen={true}
|
2017-12-22 07:42:04 +01:00
|
|
|
type="confirm"
|
2018-01-13 04:18:55 +01:00
|
|
|
contentLabel={__("Update Downloaded")}
|
|
|
|
confirmButtonLabel={__("Use it Now")}
|
2018-01-24 01:22:02 +01:00
|
|
|
abortButtonLabel={__("Upgrade on Close")}
|
2017-12-10 09:06:30 +01:00
|
|
|
onConfirmed={() => {
|
2018-01-08 21:43:25 +01:00
|
|
|
ipcRenderer.send("autoUpdateAccepted");
|
2017-12-10 09:06:30 +01:00
|
|
|
}}
|
2018-01-05 07:29:31 +01:00
|
|
|
onAborted={() => {
|
2018-01-17 11:50:02 +01:00
|
|
|
declineAutoUpdate();
|
2018-01-05 07:29:31 +01:00
|
|
|
ipcRenderer.send("autoUpdateDeclined");
|
|
|
|
closeModal();
|
|
|
|
}}
|
2017-12-08 11:08:50 +01:00
|
|
|
>
|
|
|
|
<section>
|
|
|
|
<h3 className="text-center">{__("LBRY Leveled Up")}</h3>
|
|
|
|
<p>
|
|
|
|
{__(
|
2018-01-13 04:18:55 +01:00
|
|
|
'A new version of LBRY has been released, downloaded, and is ready for you to use pending a restart.'
|
2017-12-08 11:08:50 +01:00
|
|
|
)}
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalAutoUpdateDownloaded;
|