Show app version in Account menu

This commit is contained in:
Mo Bitar
2019-05-11 18:26:55 -05:00
parent 0d6777780c
commit 47a316409b
6 changed files with 64 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
angular.module('app')
.constant('appVersion', '3.0.8')
;

View File

@@ -10,9 +10,10 @@ class AccountMenu {
}
controller($scope, $rootScope, authManager, modelManager, syncManager, storageManager, dbManager, passcodeManager,
$timeout, $compile, archiveManager, privilegesManager) {
$timeout, $compile, archiveManager, privilegesManager, appVersion) {
'ngInject';
$scope.appVersion = "v" + appVersion;
$scope.formData = {mergeLocal: true, ephemeral: false};
$scope.user = authManager.user;