Fixes: U4-7676 Don't show "Reorder" link in initial row-view for grid
This commit is contained in:
@@ -233,6 +233,17 @@ angular.module("umbraco")
|
||||
}
|
||||
};
|
||||
|
||||
$scope.showReorderButton = function() {
|
||||
if($scope.model.value && $scope.model.value.sections) {
|
||||
for(var i = 0; $scope.model.value.sections.length > i; i++) {
|
||||
var section = $scope.model.value.sections[i];
|
||||
if(section.rows && section.rows.length > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// *********************************************
|
||||
// Add items overlay menu
|
||||
// *********************************************
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
<umb-editor-sub-header-content-right>
|
||||
<umb-button
|
||||
ng-if="showReorderButton()"
|
||||
type="button"
|
||||
icon="icon-navigation"
|
||||
button-style="link"
|
||||
|
||||
Reference in New Issue
Block a user