mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-13 19:39:53 +08:00
22 lines
463 B
JavaScript
22 lines
463 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @ngdoc function
|
|
* @name passmanApp.controller:MainCtrl
|
|
* @description
|
|
* # MainCtrl
|
|
* Controller of the passmanApp
|
|
*/
|
|
angular.module('passmanApp')
|
|
.controller('MainCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) {
|
|
$scope.selectedVault = false;
|
|
|
|
$rootScope.$on('app_menu', function(evt, shown){
|
|
$scope.app_sidebar = shown;
|
|
});
|
|
|
|
$rootScope.$on('logout', function () {
|
|
$scope.selectedVault = false;
|
|
})
|
|
}]);
|
|
|