diff --git a/src/EventHub.Admin.Web/wwwroot/appsettings.json b/src/EventHub.Admin.Web/wwwroot/appsettings.json index 043dc32..cd414ea 100644 --- a/src/EventHub.Admin.Web/wwwroot/appsettings.json +++ b/src/EventHub.Admin.Web/wwwroot/appsettings.json @@ -9,7 +9,7 @@ }, "RemoteServices": { "Default": { - "BaseUrl": "https://localhost:44305" + "BaseUrl": "https://localhost:44362" } }, "AbpCli": { diff --git a/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs b/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs index be166b5..bea3856 100644 --- a/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs +++ b/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs @@ -176,7 +176,8 @@ namespace EventHub { builder .WithOrigins( - EventHubUrlOptions.GetWwwConfigValue(configuration) + EventHubUrlOptions.GetWwwConfigValue(configuration), + EventHubUrlOptions.GetAdminConfigValue(configuration) ) .WithAbpExposedHeaders() .SetIsOriginAllowedToAllowWildcardSubdomains() diff --git a/src/EventHub.Web/Pages/Organizations/Profile.cshtml b/src/EventHub.Web/Pages/Organizations/Profile.cshtml index 4b1b767..cd1fe03 100644 --- a/src/EventHub.Web/Pages/Organizations/Profile.cshtml +++ b/src/EventHub.Web/Pages/Organizations/Profile.cshtml @@ -155,20 +155,31 @@ }
-
- @await Component.InvokeAsync(typeof(EventsAreaViewComponent), new - { - organizationId = Model.Organization.Id, - maxDate = Clock.Now.ClearTime() - }) -
-
- @await Component.InvokeAsync(typeof(EventsAreaViewComponent), new - { - organizationId = Model.Organization.Id, - minDate = Clock.Now.ClearTime() - }) -
+ @if (!Model.HasPastEvents && !Model.HasUpcomingEvents) + { +

There is no Event

+ } + @if (Model.HasPastEvents) + { +
+ @await Component.InvokeAsync(typeof(EventsAreaViewComponent), new + { + organizationId = Model.Organization.Id, + maxDate = Clock.Now.ClearTime() + }) +
+ } + @if (Model.HasUpcomingEvents) + { + var isActive = Model.HasPastEvents ? "" : "active"; +
+ @await Component.InvokeAsync(typeof(EventsAreaViewComponent), new + { + organizationId = Model.Organization.Id, + minDate = Clock.Now.ClearTime() + }) +
+ }