Skip to content

Commit

Permalink
Fixed selection of identifier from the profile picker
Browse files Browse the repository at this point in the history
  • Loading branch information
edeykholt committed Aug 13, 2024
1 parent 8f309fc commit d752631
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KeriAuth.BrowserExtension/UI/Layouts/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<MudList Clickable="true" @bind-SelectedValue="ActiveAid" Class="bt-sad-4;" Style="padding: 0px">
@foreach (var identifierHeadline in IdentifiersHeadlines)
{
<MudListItem Value="@identifierHeadline.Prefix" OnClick="async () => await SetActiveAid()" Style="@IdentifiersPage.cardClass((string)ActiveAid, identifierHeadline.Prefix)" Class="bt-sad-5">
<MudListItem Value="@identifierHeadline.Prefix" OnClick="async () => await SetActiveAid(identifierHeadline.Prefix)" Style="@IdentifiersPage.cardClass((string)ActiveAid, identifierHeadline.Prefix)" Class="bt-sad-5">
<MudStack Row="true">
<MudIcon Icon=@identifierHeadline.Identicon ViewBox="0 0 100 100" Style="border-style:solid; border-color:black; border-width:2px; border-radius:50%; width:35px; height:35px; overflow:hidden; margin-top: 3px;" />
<div class="bt-sad-2" style="display:contents;">
Expand Down Expand Up @@ -503,13 +503,13 @@
// Other side-effects will be reactive. See IObserver<StateService>
}

async Task SetActiveAid()
async Task SetActiveAid(string prefix)
{
IsProfilePanelOpen = false;
var pref = await preferencesService.GetPreferences();
pref = pref with
{
SelectedAid = (string)ActiveAid
SelectedAid = prefix
};
await preferencesService.SetPreferences(pref);
// Other side-effects will be reactive. See IObserver<Preferences>
Expand Down

0 comments on commit d752631

Please sign in to comment.