diff --git a/FoodsharingSiegen.Contracts/Model/AppSettings.cs b/FoodsharingSiegen.Contracts/Model/AppSettings.cs index eef5f12..b491e8f 100644 --- a/FoodsharingSiegen.Contracts/Model/AppSettings.cs +++ b/FoodsharingSiegen.Contracts/Model/AppSettings.cs @@ -11,6 +11,13 @@ /// public string? SidebarTitle { get; set; } + /// + /// Gets or sets the name of the "StepIn." + /// This property typically represents the label or identifier used for a specific feature + /// or section within the application. + /// + public string? StepInName { get; set; } = "StepIn"; + /// /// Gets or sets the title of the application. /// This property holds the display name or title of the application, diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor index 420f33b..b3774e4 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor +++ b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor @@ -48,7 +48,7 @@ AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam))" AddClick="() => AddInteraction(InteractionType.StepInBriefing)" RemoveClick="@RemoveInteraction" - Caption="Neulingstreffen" + Caption="@AppSettings.StepInName" ButtonIconClass="fa-solid fa-check" IconClass="fa-solid fa-graduation-cap"> diff --git a/FoodsharingSiegen.Server/Controls/ProspectFilterControl.razor b/FoodsharingSiegen.Server/Controls/ProspectFilterControl.razor index 9c86e78..a5b03c4 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectFilterControl.razor +++ b/FoodsharingSiegen.Server/Controls/ProspectFilterControl.razor @@ -1,4 +1,5 @@ @using FoodsharingSiegen.Contracts.Model +@inherits FsBase @code { [Parameter] @@ -28,7 +29,7 @@
- Ohne Neulingstreffen + Ohne @AppSettings.StepInName
diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor index fe92848..74e521e 100644 --- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor +++ b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor @@ -1,5 +1,7 @@ @using FoodsharingSiegen.Contracts.Entity +@inherits FsBase + diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs index 79e53d9..82d5acd 100644 --- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs +++ b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs @@ -1,6 +1,8 @@ using Blazorise; using FoodsharingSiegen.Contracts.Entity; +using FoodsharingSiegen.Contracts.Model; using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Options; namespace FoodsharingSiegen.Server.Dialogs { @@ -73,7 +75,7 @@ namespace FoodsharingSiegen.Server.Dialogs _showInfo = true; break; case InteractionType.StepInBriefing: - _header = "Neulingstreffen absolviert"; + _header = $"{AppSettings.StepInName} absolviert"; break; case InteractionType.ReleasedForVerification: _header = "Zur Verifizierung freigegeben"; diff --git a/FoodsharingSiegen.Server/config/appsettings.json b/FoodsharingSiegen.Server/config/appsettings.json index a17c3de..ce5bf65 100644 --- a/FoodsharingSiegen.Server/config/appsettings.json +++ b/FoodsharingSiegen.Server/config/appsettings.json @@ -7,6 +7,7 @@ } }, "Settings": { - "Title": "Andres Superduperbezirk" + "Title": "Andres Superduperbezirk", + "StepInName": "Krabbelgruppe" } } \ No newline at end of file