zettapi_client
Version:
Admin panel and client-side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project.
15 lines (14 loc) • 374 B
JavaScript
app.directive('zlIdle', function() {
return {
restrict: 'A',
scope: true,
controller: function($scope, $auth) {
$scope.$on('IdleStart', function() {
swal("Atenção", "Devido à sua inactividade irá ser disconectado em 5 segundos", "info");
});
$scope.$on('IdleTimeout', function() {
$auth.logout();
});
}
};
});