Update notifications now able to parse "rc"'s and also show release notes from GitHub.

This commit is contained in:
Sebastiaan Pasma 2018-08-27 14:06:10 +02:00
commit 2c2c21bcdf
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
4 changed files with 74 additions and 26 deletions

View file

@ -43,20 +43,19 @@ angular.module('copayApp.controllers').controller('tabHomeController',
});
}
if ($scope.isNW) {
latestReleaseService.checkLatestRelease(function(err, newRelease) {
if (err) {
$log.warn(err);
return;
}
if (newRelease) {
$scope.newRelease = true;
$scope.updateText = gettextCatalog.getString('There is a new version of {{appName}} available', {
appName: $scope.name
});
}
});
}
latestReleaseService.checkLatestRelease(function(err, newReleaseData) {
if (err) {
$log.warn(err);
return;
}
if (newReleaseData) {
$scope.newRelease = true;
$scope.newReleaseText = gettextCatalog.getString('There is a new version of {{appName}} available', {
appName: $scope.name
});
$scope.newReleaseNotes = newReleaseData.releaseNotes;
}
});
};
function onEnter(event, data) {