1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00

UX updates

This commit is contained in:
Kyle Spearrin 2017-06-13 12:37:51 -04:00
parent 0bdf2a3e77
commit a598f08dce
7 changed files with 26 additions and 1 deletions

View File

@ -694,5 +694,13 @@
"shareVaultInfo": { "shareVaultInfo": {
"message": "Create an organization to securely share your logins with other users.", "message": "Create an organization to securely share your logins with other users.",
"description": "Create an organization to securely share your logins with other users." "description": "Create an organization to securely share your logins with other users."
},
"contribute": {
"message": "You can contribute to!",
"description": "You can contribute to!"
},
"learnMore": {
"message": "Learn more",
"description": "Learn more"
} }
} }

View File

@ -49,6 +49,7 @@
}; };
$scope.lock = function () { $scope.lock = function () {
$analytics.eventTrack('Lock Now');
lockService.lock().then(function () { lockService.lock().then(function () {
return $state.go('lock', { return $state.go('lock', {
animation: 'in-slide-up' animation: 'in-slide-up'

View File

@ -1,6 +1,14 @@
angular angular
.module('bit.settings') .module('bit.settings')
.controller('settingsCreditsController', function ($scope, i18nService) { .controller('settingsCreditsController', function ($scope, i18nService, $analytics) {
$scope.i18n = i18nService; $scope.i18n = i18nService;
$scope.learnMore = function () {
$analytics.eventTrack('Contribute Learn More');
chrome.tabs.create({
url: 'https://github.com/bitwarden/browser/blob/master/CONTRIBUTING.md'
});
};
}); });

View File

@ -6,6 +6,7 @@
$scope.i18n = i18nService; $scope.i18n = i18nService;
$scope.folder = {}; $scope.folder = {};
var folderId = $stateParams.folderId; var folderId = $stateParams.folderId;
$('#name').focus();
folderService.get(folderId, function (folder) { folderService.get(folderId, function (folder) {
$q.when(folder.decrypt()).then(function (model) { $q.when(folder.decrypt()).then(function (model) {

View File

@ -26,6 +26,9 @@
<b>@SW1FT</b> - Portuguese <b>@SW1FT</b> - Portuguese
</div> </div>
</div> </div>
<div class="list-section-footer">
{{i18n.contribute}} <a href="" ng-click="learnMore()">{{i18n.learnMore}}</a>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -5,6 +5,8 @@
i18nService, cryptoService, userService, folderService, loginService) { i18nService, cryptoService, userService, folderService, loginService) {
$scope.i18n = i18nService; $scope.i18n = i18nService;
$('#master-password').focus();
$scope.submitPromise = null; $scope.submitPromise = null;
$scope.submit = function () { $scope.submit = function () {
$scope.submitPromise = checkPassword().then(function () { $scope.submitPromise = checkPassword().then(function () {

View File

@ -12,6 +12,8 @@ angular
folderId: null folderId: null
}; };
$('#name').focus();
if ($stateParams.login) { if ($stateParams.login) {
angular.extend($scope.login, $stateParams.login); angular.extend($scope.login, $stateParams.login);
} }