Only allow cross-Archetype sorting of a single fieldset if it can be removed.

This commit is contained in:
Nicholas-Westby
2016-04-28 20:32:07 -07:00
parent be332d310f
commit fa48d73630
+5 -4
View File
@@ -322,10 +322,11 @@ angular.module("umbraco").controller("Imulus.ArchetypeController", function ($sc
//helper that returns if an item can be sorted
$scope.canSort = function ()
{
// This is now always true, because sorting can now be done with
// nested fieldsets.
return true;
}
// Sorting can occur if there are multiple fieldsets, or if there is only one
// fieldset that can be removed (in which case it can be sorted into an entirely
// different Archetype).
return countVisible() > 1 || $scope.canRemove();
};
//helper that returns if an item can be disabled
$scope.canDisable = function () {