Yangman - delete_list_item button misses in operations form
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / controllers / form / ym-case.controller.js
1 define([], function () {
2     'use strict';
3
4     angular.module('app.yangman').controller('YMCaseCtrl', YMCaseCtrl);
5
6     YMCaseCtrl.$inject = ['$scope'];
7
8     function YMCaseCtrl($scope){
9         var yangCase = this;
10
11         yangCase.empty = ($scope.case.children.length === 0 ||
12                         ($scope.case.children.length === 1 && $scope.case.children[0].children.length === 0));
13
14     }
15 });
16