diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index c0147915d89..b792bcf32ac 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -836,7 +836,7 @@ actionFilter: actionFilter, data: data, context: $detailView.data('view-args').context - }).prependTo($firstRow.closest('div.detail-group').closest('.details')); + }); // 'View all' button var showViewAll = detailViewArgs.viewAll ? @@ -846,6 +846,9 @@ context: context }) : true ) : true; + if ($actions.find('div.action').size() || (detailViewArgs.viewAll && showViewAll)) { + $actions.prependTo($firstRow.closest('div.detail-group').closest('.details')); + } if (detailViewArgs.viewAll && showViewAll) { $('