Skip to content

Commit 85a13df

Browse files
committed
CS-15478: UI cosmetic fix for empty buttons/viewAll section.
1 parent dc19c86 commit 85a13df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ui/scripts/ui/widgets/detailView.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@
836836
actionFilter: actionFilter,
837837
data: data,
838838
context: $detailView.data('view-args').context
839-
}).prependTo($firstRow.closest('div.detail-group').closest('.details'));
839+
});
840840

841841
// 'View all' button
842842
var showViewAll = detailViewArgs.viewAll ?
@@ -846,6 +846,9 @@
846846
context: context
847847
}) : true
848848
) : true;
849+
if ($actions.find('div.action').size() || (detailViewArgs.viewAll && showViewAll)) {
850+
$actions.prependTo($firstRow.closest('div.detail-group').closest('.details'));
851+
}
849852
if (detailViewArgs.viewAll && showViewAll) {
850853
$('<div>')
851854
.addClass('view-all')

0 commit comments

Comments
 (0)