Nu är det ordning på popuperna
This commit is contained in:
6
GreadyPoang.Services/Services/Implements/LatestPopup.cs
Normal file
6
GreadyPoang.Services/Services/Implements/LatestPopup.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace GreadyPoang.Services;
|
||||
|
||||
public static class LatestPopup
|
||||
{
|
||||
public static string valueGuid = "";
|
||||
}
|
||||
@ -25,6 +25,7 @@ public partial class InfoPopupViewModel : ObservableObject, IQueryAttributable
|
||||
{
|
||||
_popupService = popupService;
|
||||
_popupEvent = popupEvent;
|
||||
LatestPopup.valueGuid = PopupId;
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
||||
@ -81,6 +81,8 @@ public partial class ParticipantViewModel : BaseViewModel
|
||||
Shell.Current,
|
||||
options: PopupOptions.Empty,
|
||||
shellParameters: queryAttributes);
|
||||
|
||||
_activePopupId = LatestPopup.valueGuid;
|
||||
}
|
||||
|
||||
return ParticipantList;
|
||||
|
||||
@ -193,6 +193,9 @@ public partial class RoundRunningViewModel : ObservableObject
|
||||
Shell.Current,
|
||||
options: PopupOptions.Empty,
|
||||
shellParameters: queryAttributes);
|
||||
|
||||
_activePopupId = LatestPopup.valueGuid;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -59,6 +59,7 @@ public static class MauiProgram
|
||||
builder.Services.AddTransientPopup<InfoPopup, InfoPopupViewModel>();
|
||||
builder.Services.AddSingleton<IPopupEventHub, PopupEventHub>();
|
||||
|
||||
|
||||
#if DEBUG
|
||||
builder.Logging.AddDebug();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user