commit
401143484e
2 changed files with 9 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
<div class="create-robot-dialog-element">
|
<div class="create-robot-dialog-element">
|
||||||
<div ng-if="info">
|
<div ng-if="info">
|
||||||
<div class="create-entity-dialog" info="info" entity-title="robot account"
|
<div class="create-entity-dialog" info="info" entity-title="robot account"
|
||||||
entity-kind="user"
|
entity-kind="robot"
|
||||||
entity-icon="ci-robot" entity-name-regex="{{ ROBOT_PATTERN }}"
|
entity-icon="ci-robot" entity-name-regex="{{ ROBOT_PATTERN }}"
|
||||||
entity-create-requested="createRobot(name, callback)"
|
entity-create-requested="createRobot(name, callback)"
|
||||||
entity-create-completed="robotFinished(entity)"></div>
|
entity-create-completed="robotFinished(entity)"></div>
|
||||||
|
|
|
@ -676,13 +676,17 @@ angular.module("core-ui", [])
|
||||||
|
|
||||||
$scope.toggleItems = function($event) {
|
$scope.toggleItems = function($event) {
|
||||||
$event.stopPropagation();
|
$event.stopPropagation();
|
||||||
|
if ($scope.controller) {
|
||||||
$scope.controller.toggleItems();
|
$scope.controller.toggleItems();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.checkByFilter = function(filter) {
|
this.checkByFilter = function(filter) {
|
||||||
|
if ($scope.controller) {
|
||||||
$scope.controller.checkByFilter(function(item) {
|
$scope.controller.checkByFilter(function(item) {
|
||||||
return filter({'item': item});
|
return filter({'item': item});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue