Skip to content

Commit

Permalink
template for collapsed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenin Martinez committed Nov 30, 2017
1 parent cd8601c commit 0792f65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/tree/treeNode.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export default function ($scope,$rootScope) {
'ngInject'
$scope.levels = levels
$scope.$parent.nodeScopes[$scope.row.model.id] = $scope
// if (get($scope, 'row.model.level', null) === levels.TASK) {
// $scope.toggle()
// $scope.collapsed = true
// }
$scope.$on('$destroy', function () {
delete $scope.$parent.nodeScopes[$scope.row.model.id]
})
Expand Down

0 comments on commit 0792f65

Please sign in to comment.