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) {
|
function link(scope, element, attrs) {
|
||||||
var templateUrl = $parse(attrs.templateUrl)(scope);
|
var templateUrl = $parse(attrs.templateUrl)(scope);
|
||||||
if (angular.isUndefined(templateUrl)) {
|
if (!templateUrl) {
|
||||||
templateUrl = basePath + 'table/hz-detail-row.html';
|
templateUrl = basePath + 'table/hz-detail-row.html';
|
||||||
}
|
}
|
||||||
$http.get(templateUrl, { cache: $templateCache })
|
$http.get(templateUrl, { cache: $templateCache })
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
ctrl.config = {
|
ctrl.config = {
|
||||||
detailsTemplateUrl: ctrl.resourceType.summaryTemplateUrl,
|
detailsTemplateUrl: ctrl.resourceType.summaryTemplateUrl,
|
||||||
selectAll: true,
|
selectAll: true,
|
||||||
expand: true,
|
expand: ctrl.resourceType.summaryTemplateUrl,
|
||||||
trackId: ctrl.trackBy || 'id',
|
trackId: ctrl.trackBy || 'id',
|
||||||
columns: ctrl.resourceType.getTableColumns()
|
columns: ctrl.resourceType.getTableColumns()
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user