1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-03 00:53:23 +00:00

fix sync and vault listing bugs

This commit is contained in:
Kyle Spearrin
2016-09-06 23:30:49 -04:00
parent 5a39d4c73e
commit 4092e2ecc3
11 changed files with 85 additions and 58 deletions

View File

@@ -1,7 +1,13 @@
angular
.module('bit.settings')
.controller('settingsController', function ($scope, loginService, $state) {
.controller('settingsController', function ($scope, loginService, $state, syncService) {
$scope.sync = function () {
syncService.fullSync(function () {
alert('Sync done!');
});
};
$scope.logOut = function (model) {
loginService.logOut(function () {
$state.go('login');

View File

@@ -1,6 +1,15 @@
<ion-view view-title="Settings">
<ion-content>
<div class="list">
<div class="item item-divider">
Manage
</div>
<a class="item" href="#">
Folders
</a>
<a class="item" ng-click="sync()">
Sync
</a>
<div class="item item-divider">
Current Session
</div>