Commit e54c1672 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(frontend): machine settings ldap and copy faster

parent 7a02e42f
......@@ -165,10 +165,13 @@
$http.get('/machine/info/'+$scope.showmachineId+'.json')
.then(function(response) {
$scope.showmachine=response.data;
$scope.new_name=$scope.showmachine.name+"-2";
$scope.validate_new_name($scope.showmachine.name);
$scope.refresh_machine();
$scope.init_ldap_access();
if (typeof $scope.new_name == 'undefined' ) {
$scope.new_name=$scope.showmachine.name+"-2";
$scope.validate_new_name($scope.showmachine.name);
}
$scope.refresh_machine();
$scope.init_ldap_access();
$scope.list_ldap_attributes();
});
};
$scope.domain_remove = 0;
......@@ -408,7 +411,7 @@
});
};
$scope.getReqs();
$scope.list_ldap_attributes();
};
function swListMach() {
......
......@@ -2,7 +2,7 @@
<div class="panel-body">
Type a typical LDAP user name to fetch the attribute list
<input type="text" ng-model="cn" ng-change="list_ldap_attributes()"
ng-init="cn='<%= $ldap_attributes_cn %>';list_ldap_attributes()">
ng-init="cn='<%= $ldap_attributes_cn %>'">
<span ng-hide="ldap_attributes || !cn">
User name <b>{{cn}}</b> not found in LDAP server
</span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment