Skip to content

Commit

Permalink
Fixed #501 added a check in learning world pre upload validation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinHo64 committed Nov 13, 2024
1 parent 75213fa commit b847847
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Presentation/Resources/View/HeaderBar.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,7 @@
<data name="DialogService.UploadLearningWorld.Dialog.Title" xml:space="preserve">
<value>Hochladen der Lernwelt...</value>
</data>
<data name="ErrorString.TooMany.LearningSpaces.Message" xml:space="preserve">
<value>Diese Lernwelt enthält mehr als 50 Lernräume.</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Presentation/Resources/View/HeaderBar.en.resx
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,7 @@
<data name="DialogService.UploadLearningWorld.Dialog.Title" xml:space="preserve">
<value>Uploading the learning world...</value>
</data>
<data name="ErrorString.TooMany.LearningSpaces.Message" xml:space="preserve">
<value>Learning world contains more than 50 learning spaces.</value>
</data>
</root>
5 changes: 5 additions & 0 deletions Presentation/View/HeaderBar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@
{
errorString.AppendLine($"<li> {Localizer["ErrorString.Missing.LearningSpace.Message"]} </li>");
}

if (world.LearningSpaces.Count > 50)
{
errorString.AppendLine($"<li> {Localizer["ErrorString.TooMany.LearningSpaces.Message"]} </li>");
}

foreach (var space in world.LearningSpaces)
{
Expand Down

0 comments on commit b847847

Please sign in to comment.