diff --git a/js/app/controllers/bookmarklet.js b/js/app/controllers/bookmarklet.js index ed24686a..970a0002 100644 --- a/js/app/controllers/bookmarklet.js +++ b/js/app/controllers/bookmarklet.js @@ -360,7 +360,7 @@ }; $scope.fileLoadError = function (error) { - console.log($translate.instant('error.loading.file'), error); + return error; }; $scope.selected_file = ''; diff --git a/js/app/controllers/vault.js b/js/app/controllers/vault.js index c64b71d2..61aa47f5 100644 --- a/js/app/controllers/vault.js +++ b/js/app/controllers/vault.js @@ -133,7 +133,7 @@ _loginToVault(vault, vault_key); } catch (e) { - $scope.error = $translate.instant('invalid.vault.key') + $scope.error = $translate.instant('invalid.vault.key'); } }; diff --git a/js/app/directives/progressbar.js b/js/app/directives/progressbar.js index b7870cf7..a292584b 100644 --- a/js/app/directives/progressbar.js +++ b/js/app/directives/progressbar.js @@ -46,10 +46,10 @@ total: '=total' }, - link: function () { + link: function (scope) { $translate(['complete']).then(function (translations) { - $scope.completed_text = translations['complete']; - }) + scope.completed_text = translations.complete; + }); } }; }]);