1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 20:30:05 +02:00

update node modules

This commit is contained in:
s2
2020-06-07 20:03:57 +02:00
parent caeaab14b8
commit 64b500f414
3 changed files with 12 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
ipcRenderer.on('update', (event, state) => {
if (state.event === 'updateAvailable') {
$('.js-updatenotice').text(`New version ${state.version} available. Downloading...`);
$('.js-updatenotice').prop('disabled', true);
$('.js-updatenotice').show();
}
@@ -25,6 +26,9 @@
$(document).on('click', '.js-updatenotice', (ev) => {
ev.preventDefault();
if ($('.js-updatenotice').prop('disabled')) {
return;
}
$('.js-updatenotice').prop('disabled', true);
$('.js-updatenotice').text(`Launching installer...`);
ipcRenderer.send('installUpdate', $('.js-updatenotice').data('file'));