Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
change behaviour after adding new collab
Browse files Browse the repository at this point in the history
  • Loading branch information
JohHub committed Oct 7, 2022
1 parent b3d49e7 commit ee9f5f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Frontend/Pages/WSE/Components/CollabModal.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@using Models
@using Models.DTO
@inject NavigationManager NavManager
@inject NavigationManager NavigationManager
@inject HttpClient HttpClient
@using System.Reactive.Subjects
@using System.Reactive.Linq
Expand Down Expand Up @@ -125,8 +125,8 @@
Rights = WseRights.EditData
});
await HttpClient.PostAsJsonAsync($"wse/{WseId}/collaborators", _collaborators);
StateHasChanged();
@* TODO when backend works, test whether to call StateHasChanged or close Modal and ensure consistent state between FE and BE lisis *@
ModalBase.Close();
NavigationManager.NavigateTo(NavigationManager.Uri);
}

private async Task RemoveCollabById(long userId) {
Expand Down

0 comments on commit ee9f5f4

Please sign in to comment.