Bump Version
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
@if (PageState.User != null) {
|
||||
|
||||
|
||||
@if (Status != null)
|
||||
{
|
||||
<p class="mt-2"><strong>Status: </strong>
|
||||
@ -48,8 +48,8 @@
|
||||
{
|
||||
<p class="mt-3">Um dich für dieses Event zu registrieren, muss man sich zuerst anmelden.</p>
|
||||
<div class="gap-2">
|
||||
<Login />
|
||||
<UserProfile ShowRegister="true" />
|
||||
<Login />
|
||||
<UserProfile ShowRegister="true" />
|
||||
</div>
|
||||
}
|
||||
|
||||
@ -83,20 +83,20 @@
|
||||
private async Task SendResponse(bool response)
|
||||
{
|
||||
if(ValidateProfiles()) {
|
||||
if(_response == null)
|
||||
{
|
||||
_response = new Response();
|
||||
_response.EventRegistrationId = _id;
|
||||
_response.OwnerId = PageState.User.UserId;
|
||||
_response.ModuleId = ModuleState.ModuleId;
|
||||
_response.ResponseType = response;
|
||||
_response = await EventRegistrationService.AddResponseAsync(_response);
|
||||
} else
|
||||
{
|
||||
_response.ResponseType = response;
|
||||
_response = await EventRegistrationService.UpdateResponseAsync(_response);
|
||||
}
|
||||
if(_response != null) Status = _response.ResponseType;
|
||||
if(_response == null)
|
||||
{
|
||||
_response = new Response();
|
||||
_response.EventRegistrationId = _id;
|
||||
_response.OwnerId = PageState.User.UserId;
|
||||
_response.ModuleId = ModuleState.ModuleId;
|
||||
_response.ResponseType = response;
|
||||
_response = await EventRegistrationService.AddResponseAsync(_response);
|
||||
} else
|
||||
{
|
||||
_response.ResponseType = response;
|
||||
_response = await EventRegistrationService.UpdateResponseAsync(_response);
|
||||
}
|
||||
if(_response != null) Status = _response.ResponseType;
|
||||
} else
|
||||
{
|
||||
var currentPathAndQuery = new Uri(NavigationManager.Uri).PathAndQuery;
|
||||
@ -114,7 +114,7 @@
|
||||
|
||||
private async void Absage()
|
||||
{
|
||||
await SendResponse(false);
|
||||
await SendResponse(false);
|
||||
}
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
@ -122,12 +122,12 @@
|
||||
try
|
||||
{
|
||||
if(PageState.User != null) {
|
||||
_profiles = await ProfileService.GetProfilesAsync(PageState.Site.SiteId);
|
||||
var user = await UserService.GetUserAsync(PageState.User.UserId, PageState.Site.SiteId);
|
||||
if (user != null)
|
||||
{
|
||||
_settings = user.Settings;
|
||||
}
|
||||
_profiles = await ProfileService.GetProfilesAsync(PageState.Site.SiteId);
|
||||
var user = await UserService.GetUserAsync(PageState.User.UserId, PageState.Site.SiteId);
|
||||
if (user != null)
|
||||
{
|
||||
_settings = user.Settings;
|
||||
}
|
||||
}
|
||||
|
||||
_id = Int32.Parse(PageState.QueryString["id"]);
|
||||
|
||||
Reference in New Issue
Block a user