Skip to content

Commit 08bd0a7

Browse files
committed
improve about view and bump version to release v0.5.6
1 parent 55e5991 commit 08bd0a7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Soundnode-app.png

28.3 KB
Loading

app/public/js/about/aboutCtrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ app.controller('AboutCtrl', function ($scope, $http, $rootScope, ngDialog, $wind
1212
$scope.appVersion = $window.settings.appVersion;
1313
$scope.appLatestVersion = '';
1414
$scope.content = '';
15+
$scope.isLatest = ($scope.appVersion < $scope.appLatestVersion) ? false : true;
1516

1617
$scope.openModal = function() {
1718
ngDialog.open({

app/public/js/system/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
window.settings = window.settings || {};
33

44
// App version
5-
window.settings.appVersion = '0.5.5';
5+
window.settings.appVersion = '0.5.6';

app/views/about/about.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
<div class="modalView_content" ng-bind-html="content"></div>
55

6-
<!--TODO: when this released remove from Soundnode-about the hard coded version -->
7-
<small class="ui-db">Your Soundnode current version {{ appVersion }}.</small>
8-
<small class="ui-db">Soundnode latest release version {{ appLatestVersion }}</small>
6+
<small class="ui-db" ng-if="isLatest">You have the latest version {{ appVersion }}.</small>
7+
<small class="ui-db" ng-if="!isLatest">Your current version ({{ appVersion }}) isn't the latest ({{ appLatestVersion }}), please download the latest version.</small>
98
</div>

0 commit comments

Comments
 (0)