fix(users): fix invalid Authentication value (#1528)

pull/1516/head
Anthony Lapenna 2017-12-21 19:56:54 +01:00 committed by GitHub
parent e0b09f20b0
commit eec10541b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -118,6 +118,7 @@
title="Users" title-icon="fa-user"
dataset="users" table-key="users"
order-by="Username" show-text-filter="true"
authentication-method="AuthenticationMethod"
remove-action="removeAction"
></users-datatable>
</div>

View File

@ -70,8 +70,8 @@
</span>
</td>
<td>
<span ng-if="item.Id === 1 || authenticationMethod !== 2">Internal</span>
<span ng-if="item.Id !== 1 && authenticationMethod === 2">LDAP</span>
<span ng-if="item.Id === 1 || $ctrl.authenticationMethod !== 2">Internal</span>
<span ng-if="item.Id !== 1 && $ctrl.authenticationMethod === 2">LDAP</span>
</td>
</tr>
<tr ng-if="!$ctrl.dataset">

View File

@ -9,6 +9,7 @@ angular.module('ui').component('usersDatatable', {
orderBy: '@',
reverseOrder: '<',
showTextFilter: '<',
removeAction: '<'
removeAction: '<',
authenticationMethod: '<'
}
});