mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Reviewed all instances of lbry-app and changed to lbr-desktop. There are still some that will stay at lby-app for now (i.e. AUR/Flatpak repo names).
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import { ipcRenderer } from 'electron';
|
|
import { Modal } from 'modal/modal';
|
|
import Button from 'component/button';
|
|
|
|
class ModalAutoUpdateDownloaded extends React.PureComponent {
|
|
render() {
|
|
const { closeModal, declineAutoUpdate } = this.props;
|
|
|
|
return (
|
|
<Modal
|
|
isOpen
|
|
type="confirm"
|
|
contentLabel={__('Update Downloaded')}
|
|
confirmButtonLabel={__('Use it Now')}
|
|
abortButtonLabel={__('Upgrade on Close')}
|
|
onConfirmed={() => {
|
|
ipcRenderer.send('autoUpdateAccepted');
|
|
}}
|
|
onAborted={() => {
|
|
declineAutoUpdate();
|
|
ipcRenderer.send('autoUpdateDeclined');
|
|
closeModal();
|
|
}}
|
|
>
|
|
<section>
|
|
<h3 className="text-center">{__('LBRY Leveled Up')}</h3>
|
|
<p>
|
|
{__(
|
|
'A new version of LBRY has been released, downloaded, and is ready for you to use pending a restart.'
|
|
)}
|
|
</p>
|
|
<p className="meta text-center">
|
|
{__('Want to know what has changed?')} See the{' '}
|
|
<Button
|
|
button="link"
|
|
label={__('release notes')}
|
|
href="https://github.com/lbryio/lbry-desktop/releases"
|
|
/>.
|
|
</p>
|
|
</section>
|
|
</Modal>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ModalAutoUpdateDownloaded;
|