Use a count on the add button rather than checking flag

This commit is contained in:
Kevin Giszewski
2014-04-30 10:00:15 -04:00
parent 848d25a156
commit 6ea44c271d
+1 -1
View File
@@ -108,7 +108,7 @@
$scope.showAddButton = function () {
return $scope.model.config.startWithAddButton
&& countVisible() === 0
&& !$scope.model.config.enableMultipleFieldsets;
&& $scope.model.config.fieldsets.length == 1;
}
//helper, ini the render model from the server (model.value)