Merge pull request #1815 from coreos-inc/ui-bugs

Ui bugs
This commit is contained in:
josephschorr 2016-09-08 14:33:54 -04:00 committed by GitHub
commit 401143484e
2 changed files with 9 additions and 5 deletions

View file

@ -1,7 +1,7 @@
<div class="create-robot-dialog-element">
<div ng-if="info">
<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-create-requested="createRobot(name, callback)"
entity-create-completed="robotFinished(entity)"></div>

View file

@ -676,13 +676,17 @@ angular.module("core-ui", [])
$scope.toggleItems = function($event) {
$event.stopPropagation();
$scope.controller.toggleItems();
if ($scope.controller) {
$scope.controller.toggleItems();
}
};
this.checkByFilter = function(filter) {
$scope.controller.checkByFilter(function(item) {
return filter({'item': item});
});
if ($scope.controller) {
$scope.controller.checkByFilter(function(item) {
return filter({'item': item});
});
}
};
}
};