mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
fixes
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<div class="list-section-item list-section-item-icon-input">
|
||||
<i class="fa fa-lock fa-lg fa-fw"></i>
|
||||
<label for="code" class="sr-only">Verification Code</label>
|
||||
<input id="code" type="number" name="Code" placeholder="Verification Code" ng-model="model.code">
|
||||
<input id="code" type="text" name="Code" placeholder="Verification Code" ng-model="model.code">
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-section-footer">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
angular
|
||||
.module('bit.global')
|
||||
|
||||
.controller('mainController', function ($scope, $state) {
|
||||
.controller('mainController', function ($scope, $state, loginService, toastr) {
|
||||
var self = this;
|
||||
self.currentYear = new Date().getFullYear();
|
||||
self.animation = '';
|
||||
@@ -23,5 +23,11 @@
|
||||
else if (msg.command === 'syncStarted') {
|
||||
$scope.$broadcast('syncStarted');
|
||||
}
|
||||
else if (msg.command === 'logout') {
|
||||
loginService.logOut(function () {
|
||||
toastr.warning('Your login session has expired.', 'Logged out');
|
||||
$state.go('home');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
$scope.logOut = function () {
|
||||
SweetAlert.swal({
|
||||
title: 'Log out',
|
||||
title: 'Log Out',
|
||||
text: 'Are you sure you want to log out?',
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<i class="fa fa-chevron-right fa-lg"></i>
|
||||
</a>
|
||||
<a class="list-section-item" href="" ng-click="logOut()">
|
||||
Log out
|
||||
Log Out
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -64,10 +64,6 @@
|
||||
return item.name.toLowerCase();
|
||||
};
|
||||
|
||||
$scope.filterByFolder = function (folder) {
|
||||
|
||||
};
|
||||
|
||||
$scope.searchSites = function () {
|
||||
if (!$scope.searchText) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user