Sfoglia il codice sorgente

Don't show "report this to the community" when the upgrade is unsupported

* fixes #21367
tags/v9.0beta1
Morris Jobke 8 anni fa
parent
commit
4032cc0166
1 ha cambiato i file con 10 aggiunte e 6 eliminazioni
  1. 10
    6
      core/js/update.js

+ 10
- 6
core/js/update.js Vedi File

@@ -60,12 +60,16 @@
updateEventSource.listen('failure', function(message) {
$(window).off('beforeunload.inprogress');
$('<span>').addClass('error').append(message).append('<br />').appendTo($el);
$('<span>')
.addClass('bold')
.append(t('core', 'The update was unsuccessful. ' +
'Please report this issue to the ' +
'<a href="https://github.com/owncloud/core/issues" target="_blank">ownCloud community</a>.'))
.appendTo($el);
var span = $('<span>')
.addClass('bold');
if(message === 'Exception: Updates between multiple major versions and downgrades are unsupported.') {
span.append(t('core', 'The update was unsuccessful.'));
} else {
span.append(t('core', 'The update was unsuccessful. ' +
'Please report this issue to the ' +
'<a href="https://github.com/owncloud/core/issues" target="_blank">ownCloud community</a>.'));
}
span.appendTo($el);
});
updateEventSource.listen('done', function() {
$(window).off('beforeunload.inprogress');

Loading…
Annulla
Salva