mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
111638: Only collapse tables on initial page open
This commit is contained in:
@@ -200,7 +200,8 @@ export class ProcessOverviewTableComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
// Collapse this section when the number of processes is zero the first time processes are retrieved
|
// Collapse this section when the number of processes is zero the first time processes are retrieved
|
||||||
this.subs.push(this.processesRD$.pipe(
|
this.subs.push(this.processesRD$.pipe(
|
||||||
filter((processListRd: RemoteData<PaginatedList<ProcessOverviewTableEntry>>) => hasValue(processListRd))
|
filter((processListRd: RemoteData<PaginatedList<ProcessOverviewTableEntry>>) => hasValue(processListRd)),
|
||||||
|
take(1),
|
||||||
).subscribe(
|
).subscribe(
|
||||||
(processesRD: RemoteData<PaginatedList<ProcessOverviewTableEntry>>) => {
|
(processesRD: RemoteData<PaginatedList<ProcessOverviewTableEntry>>) => {
|
||||||
if (!(processesRD.payload.totalElements > 0)) {
|
if (!(processesRD.payload.totalElements > 0)) {
|
||||||
|
Reference in New Issue
Block a user