diff --git a/FoodsharingSiegen.Contracts/Model/AppSettings.cs b/FoodsharingSiegen.Contracts/Model/AppSettings.cs index 37cc044..0402934 100644 --- a/FoodsharingSiegen.Contracts/Model/AppSettings.cs +++ b/FoodsharingSiegen.Contracts/Model/AppSettings.cs @@ -3,27 +3,8 @@ public class AppSettings { #region Public Properties - - /// - /// 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, - /// which may be used for branding purposes in various parts of the UI. - /// - public string? Title { get; set; } = "Foodsharing Musterhausen"; - - /// - /// Gets or sets the title displayed in the sidebar. - /// This property represents the text that appears in the application's sidebar, - /// typically used for informational or navigational purposes. - /// - public string? TitleShort { get; set; } + + public TermSettings Terms { get; set; } = new(); #endregion } diff --git a/FoodsharingSiegen.Contracts/Model/TermSettings.cs b/FoodsharingSiegen.Contracts/Model/TermSettings.cs new file mode 100644 index 0000000..97f69b7 --- /dev/null +++ b/FoodsharingSiegen.Contracts/Model/TermSettings.cs @@ -0,0 +1,30 @@ +namespace FoodsharingSiegen.Contracts.Model +{ + public class TermSettings + { + #region Public Properties + + /// + /// 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, + /// which may be used for branding purposes in various parts of the UI. + /// + public string? Title { get; set; } = "Foodsharing Musterhausen"; + + /// + /// Gets or sets the title displayed in the sidebar. + /// This property represents the text that appears in the application's sidebar, + /// typically used for informational or navigational purposes. + /// + public string? TitleShort { get; set; } + + #endregion + } +} \ No newline at end of file diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor index b3774e4..7373fcc 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="@AppSettings.StepInName" + Caption="@AppSettings.Terms.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 a5b03c4..792bbf7 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectFilterControl.razor +++ b/FoodsharingSiegen.Server/Controls/ProspectFilterControl.razor @@ -29,7 +29,7 @@
- Ohne @AppSettings.StepInName + Ohne @AppSettings.Terms.StepInName
diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs index 82d5acd..9ce3b95 100644 --- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs +++ b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs @@ -75,7 +75,7 @@ namespace FoodsharingSiegen.Server.Dialogs _showInfo = true; break; case InteractionType.StepInBriefing: - _header = $"{AppSettings.StepInName} absolviert"; + _header = $"{AppSettings.Terms.StepInName} absolviert"; break; case InteractionType.ReleasedForVerification: _header = "Zur Verifizierung freigegeben"; diff --git a/FoodsharingSiegen.Server/Pages/AuditView.razor b/FoodsharingSiegen.Server/Pages/AuditView.razor index 8a8213d..8222a48 100644 --- a/FoodsharingSiegen.Server/Pages/AuditView.razor +++ b/FoodsharingSiegen.Server/Pages/AuditView.razor @@ -6,7 +6,7 @@ @inherits FsBase -Aktivitäten - @AppSettings.Title +Aktivitäten - @AppSettings.Terms.Title

Aktivitäten

diff --git a/FoodsharingSiegen.Server/Pages/Login.razor b/FoodsharingSiegen.Server/Pages/Login.razor index 03f3fe9..3e86000 100644 --- a/FoodsharingSiegen.Server/Pages/Login.razor +++ b/FoodsharingSiegen.Server/Pages/Login.razor @@ -4,11 +4,11 @@ @inherits FoodsharingSiegen.Server.BaseClasses.FsBase -@AppSettings.Title +@AppSettings.Terms.Title
-
@AppSettings.Title
+
@AppSettings.Terms.Title
diff --git a/FoodsharingSiegen.Server/Pages/Profile.razor b/FoodsharingSiegen.Server/Pages/Profile.razor index 083187f..f2f556b 100644 --- a/FoodsharingSiegen.Server/Pages/Profile.razor +++ b/FoodsharingSiegen.Server/Pages/Profile.razor @@ -7,7 +7,7 @@ @inherits FsBase -Profil - @AppSettings.Title +Profil - @AppSettings.Terms.Title
diff --git a/FoodsharingSiegen.Server/Pages/Prospects.razor b/FoodsharingSiegen.Server/Pages/Prospects.razor index b517f32..93714ee 100644 --- a/FoodsharingSiegen.Server/Pages/Prospects.razor +++ b/FoodsharingSiegen.Server/Pages/Prospects.razor @@ -5,7 +5,7 @@ @using FoodsharingSiegen.Shared.Helper @inherits FsBase -Neue Foodsaver - @AppSettings.Title +Neue Foodsaver - @AppSettings.Terms.Title

Neue Foodsaver