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"]);
|
||||
|
||||
@ -9,9 +9,9 @@ namespace SZUAbsolventenverein.Module.EventRegistration
|
||||
{
|
||||
Name = "EventRegistration",
|
||||
Description = "A module to manage registration for events",
|
||||
Version = "1.0.14",
|
||||
Version = "1.0.17",
|
||||
ServerManagerType = "SZUAbsolventenverein.Module.EventRegistration.Manager.EventRegistrationManager, SZUAbsolventenverein.Module.EventRegistration.Server.Oqtane",
|
||||
ReleaseVersions = "1.0.0,1.0.1,1.0.2,1.0.3,1.0.4,1.0.5,1.0.6,1.0.7,1.0.8,1.0.9,1.0.10,1.0.11,1.0.12,1.0.13,1.0.14",
|
||||
ReleaseVersions = "1.0.0,1.0.1,1.0.2,1.0.3,1.0.4,1.0.5,1.0.6,1.0.7,1.0.8,1.0.9,1.0.10,1.0.11,1.0.12,1.0.13,1.0.14,1.0.15,1.0.16,1.0.17",
|
||||
Dependencies = "SZUAbsolventenverein.Module.EventRegistration.Shared.Oqtane",
|
||||
PackageName = "SZUAbsolventenverein.Module.EventRegistration"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user