@@ -4,7 +4,7 @@ import { Circle } from 'rc-progress';
44import openDialog from '../../renderers/dialog' ;
55import i18n from '../../../i18n/i18n' ;
66import { Notify } from '../../../helpers/notify' ;
7- const ipc = require ( 'electron' ) . ipcRenderer
7+ const ipc = require ( 'electron' ) . ipcRenderer ;
88
99// Styled Components
1010import styled , { keyframes } from 'styled-components' ;
@@ -54,10 +54,7 @@ class AppUpdate extends PureComponent {
5454 type : 'info' ,
5555 title : i18n . t ( 'dialog:appUpdate:available:title' ) ,
5656 message : i18n . t ( 'dialog:appUpdate:available:message' ) ,
57- buttons : [
58- i18n . t ( 'common:yes' ) ,
59- i18n . t ( 'common:noThanks' )
60- ] ,
57+ buttons : [ i18n . t ( 'common:yes' ) , i18n . t ( 'common:noThanks' ) ] ,
6158 } ,
6259 'update-download-confirmed'
6360 ) ;
@@ -73,11 +70,21 @@ class AppUpdate extends PureComponent {
7370 } ) ;
7471
7572 ipc . on ( 'update-error' , ( event , error ) => {
76- openDialog ( {
77- type : 'warning' ,
78- title : i18n . t ( 'dialog:appUpdate:error:title' ) ,
79- message : error ,
80- } ) ;
73+ openDialog (
74+ {
75+ type : 'warning' ,
76+ title : i18n . t ( 'dialog:appUpdate:error:title' ) ,
77+ message : i18n . t ( 'dialog:appUpdate:error:message' ) ,
78+ buttons : [
79+ i18n . t ( 'common:ok' ) ,
80+ {
81+ message : i18n . t ( 'dialog:appUpdate:error:OpenReleasePage' ) ,
82+ url : `https://github.com/AndresMorelos/Invoncify/releases` ,
83+ } ,
84+ ] ,
85+ } ,
86+ 'update-error-selection'
87+ ) ;
8188 this . hideIndicator ( ) ;
8289 } ) ;
8390
@@ -118,7 +125,7 @@ class AppUpdate extends PureComponent {
118125 message : i18n . t ( 'dialog:appUpdate:downloaded:message' ) ,
119126 buttons : [
120127 i18n . t ( 'dialog:appUpdate:downloaded:quitNow' ) ,
121- i18n . t ( 'dialog:appUpdate:downloaded:later' )
128+ i18n . t ( 'dialog:appUpdate:downloaded:later' ) ,
122129 ] ,
123130 } ,
124131 'upgrade-confirmed'
0 commit comments