Merge "[TrivialFix] Hide expand in angular table if we haven't setSummaryTemplateUrl"
This commit is contained in:
commit
7971aea145
@ -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 })
|
||||
|
@ -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()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user