[23720] Expand new groups by default (#4736)

pull/4742/head
Oliver Günther 8 years ago committed by GitHub
parent 67a9df139b
commit 4a2f4fee52
  1. 5
      frontend/app/components/wp-table/wp-table.directive.ts

@ -125,6 +125,11 @@ function wpTable(
scope.groupByColumn = scope.workPackagesTableData.groupByColumn;
scope.grouped = scope.groupByColumn !== undefined;
scope.groupExpanded = {};
// Open new groups by default
Object.keys(scope.groupHeaders).forEach((key) => {
scope.groupExpanded[key] = true;
});
}
}

Loading…
Cancel
Save