Skip to content

Commit

Permalink
⚡ refactor: GetRolesAssync when RoleUsersDialog is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Sep 3, 2024
1 parent dcdca85 commit a972ebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@

<AddRoleDialog @bind-Visible="AddRoleDialogVisible" OnSubmitSuccess=GetRolesAsync />
<UpdateRoleDialog RoleId=CurrentRoleId @bind-Visible="UpdateRoleDialogVisible" OnSubmitSuccess=GetRolesAsync />
<RoleUsersDialog RoleId=CurrentRoleId @bind-Visible="RoleUsersDialogVisible" />
<RoleUsersDialog RoleId=CurrentRoleId @bind-Visible="RoleUsersDialogVisible" OnClosed="GetRolesAsync" />
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@inherits AdminCompontentBase

<DefaultSheetDialog Value="Visible" ValueChanged=VisibleChanged Title="@T("RoleUser")">
<DefaultSheetDialog Value="Visible" ValueChanged=VisibleChanged Title="@T("RoleUser")" OnClosed="OnClosed">
<AutoHeight Overflow AutoClass="mt-6">
<HeaderContent>
<div class="d-flex">
Expand Down Expand Up @@ -55,6 +55,9 @@
[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }

[Parameter]
public EventCallback OnClosed { get; set; }

public bool _addRoleUserModalVisible;

private List<DataTableHeader<UserSelectModel>> _headers = new();
Expand Down

0 comments on commit a972ebf

Please sign in to comment.