Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-1542-supervision (pull request
Browse files Browse the repository at this point in the history
DSpace#2377)

[DSC-1542] fix supervision selection

Approved-by: Giuseppe Digilio
  • Loading branch information
FrancescoMolinaro authored and atarix83 committed Oct 17, 2024
2 parents 8ad1dc3 + 17ffbe3 commit 878f020
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<ds-error *ngIf="isSubmitted && !selectedGroup" message="{{'supervision-group-selector.select.group.error' | translate}}"></ds-error>
</ng-container>
<ds-eperson-group-list [isListOfEPerson]="false"
(deselect)="updateGroupObjectSelected($event)"
(select)="updateGroupObjectSelected($event)"></ds-eperson-group-list>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ export class SupervisionOrderGroupSelectorComponent {
* Assign the value of group on select
*/
updateGroupObjectSelected(object) {
this.selectedGroup = object;
console.log(object);
if (object && object !== this.selectedGroup) {
this.selectedGroup = object;
} else if (object) {
this.selectedGroup = null;
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/app/core/data/request.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export class RequestEffects {
);
}),
filter((entry: RequestEntry) => hasValue(entry)),
// TODO: test once rest part is aligned
withLatestFrom(this.xsrfService.tokenInitialized$),
// If it's a GET request, or we have an XSRF token, dispatch it immediately
// Otherwise wait for the XSRF token first
Expand Down

0 comments on commit 878f020

Please sign in to comment.