diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor
index a1a5450..6fdccf0 100644
--- a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor
+++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor
@@ -24,7 +24,7 @@
@if (PageState.User != null) {
-
+
@if (Status != null)
{
Status:
@@ -48,8 +48,8 @@
{
Um dich für dieses Event zu registrieren, muss man sich zuerst anmelden.
-
-
+
+
}
@@ -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"]);
diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs
index f48e1c2..3beb41f 100644
--- a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs
+++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs
@@ -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"
};
diff --git a/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec b/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec
index 5f2ccb9..1bf415d 100644
--- a/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec
+++ b/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec
@@ -2,7 +2,7 @@
$projectname$
- 1.0.14
+ 1.0.17
SZUAbsolventenverein
SZUAbsolventenverein
EventRegistration