Merge "[TrivialFix] Hide expand in angular table if we haven't setSummaryTemplateUrl"

This commit is contained in:
Jenkins 2016-07-21 09:19:15 +00:00 committed by Gerrit Code Review
commit 7971aea145
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@
function link(scope, element, attrs) {
var templateUrl = $parse(attrs.templateUrl)(scope);
if (angular.isUndefined(templateUrl)) {
if (!templateUrl) {
templateUrl = basePath + 'table/hz-detail-row.html';
}
$http.get(templateUrl, { cache: $templateCache })

View File

@ -41,7 +41,7 @@
ctrl.config = {
detailsTemplateUrl: ctrl.resourceType.summaryTemplateUrl,
selectAll: true,
expand: true,
expand: ctrl.resourceType.summaryTemplateUrl,
trackId: ctrl.trackBy || 'id',
columns: ctrl.resourceType.getTableColumns()
};