mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-28 11:30:24 +08:00
21 lines
809 B
JavaScript
21 lines
809 B
JavaScript
backupApp.controller('UpdateChangelogController', function($scope, BrandingService, ServerStatus, AppService, AppUtils, SystemInfo, gettextCatalog) {
|
|
$scope.brandingService = BrandingService.watch($scope);
|
|
$scope.systeminfo = SystemInfo.watch($scope);
|
|
$scope.serverstate = ServerStatus.watch($scope);
|
|
|
|
function reloadChangeLog() {
|
|
AppService.get('/changelog?from-update=true').then(function(resp) {
|
|
$scope.Version = resp.data.Version;
|
|
$scope.ChangeLog = resp.data.Changelog;
|
|
});
|
|
};
|
|
|
|
$scope.doCheck = function() {
|
|
AppService.post('/updates/check').then(function() {
|
|
reloadChangeLog();
|
|
}, AppUtils.connectionError(gettextCatalog.getString('Check failed:') + ' '));
|
|
};
|
|
|
|
reloadChangeLog();
|
|
|
|
});
|