Skip to content

Commit

Permalink
fixes #16346 - composite view - do not show unpublished views (#6283)
Browse files Browse the repository at this point in the history
This commit contains a small change so that content views that
have not been published (i.e. no versions exist) are not presented
to the user in the UI.
  • Loading branch information
daviddavis committed Aug 31, 2016
2 parents a43dc49 + eb439b0 commit a5ccff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -42,7 +42,8 @@
<tbody>
<tr bst-table-row
ng-repeat="contentView in detailsTable.rows | filter:contentViewFilter | orderBy:'name'"
row-select="contentView">
row-select="contentView"
ng-hide="contentView.versions.length === 0">
<td bst-table-cell>{{ contentView.name }}</td>
<td bst-table-cell>
<select class="form-control"
Expand Down
Expand Up @@ -36,7 +36,8 @@

<tbody>
<tr bst-table-row ng-repeat="contentViewVersion in detailsTable.rows | filter:contentViewVersionFilter | orderBy:'name'"
row-select="contentViewVersion">
row-select="contentViewVersion"
ng-hide="contentViewVersions.length === 0">
<td bst-table-cell>{{ contentViewVersion.content_view.name }}</td>
<td bst-table-cell>
<span bst-edit-select="contentViewVersion.id"
Expand Down

0 comments on commit a5ccff0

Please sign in to comment.