2FA sessions explorer search engine - add translate rules & code improvement

This commit is contained in:
Christophe Maudoux 2018-03-21 22:51:58 +01:00
parent fc851eeb2f
commit 6f650de4f6
9 changed files with 15 additions and 19 deletions

View File

@ -159,19 +159,13 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
$scope.updateTree '', $scope.data, 0, 0
# Search 2FA sessions
$scope.search2FA = ->
$scope.search2FA = (clear) ->
if clear
$scope.searchString =''
$scope.currentSession = null
$scope.data = []
$scope.updateTree2 '', $scope.data, 0, 0
# Clear 2FA sessions searchString
$scope.clearSearch2FA = ->
$scope.currentSession = null
$scope.data = []
$scope.searchString =''
$scope.updateTree2 '', $scope.data, 0, 0
# Delete U2F key
$scope.deleteU2FKey = ->
$scope.waiting = true

View File

@ -185,17 +185,14 @@
$scope.data = [];
return $scope.updateTree('', $scope.data, 0, 0);
};
$scope.search2FA = function() {
$scope.search2FA = function(clear) {
if (clear) {
$scope.searchString = '';
}
$scope.currentSession = null;
$scope.data = [];
return $scope.updateTree2('', $scope.data, 0, 0);
};
$scope.clearSearch2FA = function() {
$scope.currentSession = null;
$scope.data = [];
$scope.searchString = '';
return $scope.updateTree2('', $scope.data, 0, 0);
};
$scope.deleteU2FKey = function() {
$scope.waiting = true;
$http['delete'](scriptname + "sfa/" + sessionType + "/" + $scope.currentSession.id + "?Key=U2F").then(function(response) {

File diff suppressed because one or more lines are too long

View File

@ -658,6 +658,7 @@
"save":"حفظ",
"saveReport":"احفظ التقرير",
"savingConfirmation":"حفظ التأكيد",
"search":"Search",
"secondFactors":"Second factors",
"securedCookie":"ملفات تعريف الارتباط المضمونة (سسل)",
"security":"الحماية",

View File

@ -658,6 +658,7 @@
"save":"Save",
"saveReport":"Save report",
"savingConfirmation":"Saving confirmation",
"search":"Search",
"secondFactors":"Second factors",
"securedCookie":"Secured Cookie (SSL)",
"security":"Security",

View File

@ -658,6 +658,7 @@
"save":"Sauver",
"saveReport":"Rapport de sauvegarde",
"savingConfirmation":"Confirmation de sauvegarde",
"search":"Rechercher",
"secondFactors":"Second facteurs",
"securedCookie":"Cookie sécurisé (HTTPS)",
"security":"Sécurité",

View File

@ -658,6 +658,7 @@
"save":"Salva",
"saveReport":"Salva report",
"savingConfirmation":"Salvataggio della conferma",
"search":"Search",
"secondFactors":"Second factors",
"securedCookie":"Cookie protetti (SSL)",
"security":"Sicurezza",

View File

@ -659,6 +659,7 @@
"saveReport":"Lưu báo cáo",
"savingConfirmation":"Lưu xác nhận",
"secondFactors":"Second factors",
"search":"Search",
"securedCookie":"Cookie bảo mật (SSL)",
"security":"An ninh",
"serverError":"Lỗi máy chủ",

View File

@ -25,9 +25,9 @@
<div class="col-lg-6 col-md-6 col-sm-7 " >
<form class="navbar-form" role="search">
<div class="input-group add-on">
<input class="form-control" placeholder="Rechercher" type="text" ng-model="searchString" ng-init="*" ng-keyup="search2FA()"/>
<input class="form-control" placeholder="{{translate('search')}}" type="text" ng-model="searchString" ng-init="*" ng-keyup="search2FA()"/>
<div class="input-group-btn">
<button class="btn btn-default" ng-click="clearSearch2FA()"><i class="glyphicon glyphicon-search"></i></button>
<button class="btn btn-default" ng-click="search2FA(1)"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>