diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/ComparisonShipFilter.razor b/WoWsShipBuilder.Common/Features/ShipComparison/ComparisonShipFilter.razor
index 33f7a141a..9649cee2d 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/ComparisonShipFilter.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/ComparisonShipFilter.razor
@@ -13,10 +13,10 @@
@Localizer.SimpleAppLocalization(nameof(Translation.ShipSelectionWindow_TierFilter))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_All))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_None))
@@ -26,7 +26,7 @@
{
int tier = i;
bool isSelected = ViewModel!.SelectedTiers.Contains(tier);
- ToggleTierSelection(tier, args))" oncontextmenu="return false;">
+ ToggleTierSelection(tier, args))" oncontextmenu="return false;">
@tier.ToTierString()
}
@@ -36,10 +36,10 @@
@Localizer.SimpleAppLocalization(nameof(Translation.ShipSelectionWindow_ClassFilter))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_All))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_None))
@@ -48,7 +48,7 @@
@foreach (var shipClass in ViewModel!.AvailableClasses)
{
bool isSelected = ViewModel.SelectedClasses.Contains(shipClass);
- ToggleClassSelection(shipClass, args))" oncontextmenu="return false;">
+ ToggleClassSelection(shipClass, args))" oncontextmenu="return false;">
@Localizer.GetAppLocalization(shipClass.ShipClassToString()).Localization
}
@@ -58,10 +58,10 @@
@Localizer.SimpleAppLocalization(nameof(Translation.ShipSelectionWindow_NationFilter))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_All))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_None))
@@ -70,7 +70,7 @@
@foreach (var nation in ViewModel!.AvailableNations)
{
bool isSelected = ViewModel.SelectedNations.Contains(nation);
- ToggleNationSelection(nation, args))" oncontextmenu="return false;">
+ ToggleNationSelection(nation, args))" oncontextmenu="return false;">
@Localizer.GetAppLocalization(nation.ShipNationToString()).Localization
}
@@ -80,10 +80,10 @@
@Localizer.SimpleAppLocalization(nameof(Translation.ShipSelectionWindow_TypeFilter))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_All))
-
+
@Localizer.SimpleAppLocalization(nameof(Translation.ShipComparison_None))
@@ -92,7 +92,7 @@
@foreach (var category in ViewModel!.AvailableShipCategories)
{
bool isSelected = ViewModel.SelectedCategories.Contains(category);
- ToggleCategorySelection(category, args))" oncontextmenu="return false;">
+ ToggleCategorySelection(category, args))" oncontextmenu="return false;">
@Localizer.GetAppLocalization(category.ShipCategoryToString()).Localization
}
@@ -120,7 +120,7 @@
{
int tier = i;
bool isSelected = ViewModel!.SelectedTiers.Contains(tier);
- ToggleTierSelection(tier, args))" oncontextmenu="return false;">
+ ToggleTierSelection(tier, args))" oncontextmenu="return false;">
@tier.ToTierString()
}
@@ -129,7 +129,7 @@
@foreach (var shipClass in ViewModel!.AvailableClasses)
{
bool isSelected = ViewModel.SelectedClasses.Contains(shipClass);
- ToggleClassSelection(shipClass, args))" oncontextmenu="return false;">
+ ToggleClassSelection(shipClass, args))" oncontextmenu="return false;">
@Localizer.GetAppLocalization(shipClass.ShipClassToString()).Localization
}
@@ -138,7 +138,7 @@
@foreach (var nation in ViewModel!.AvailableNations)
{
bool isSelected = ViewModel.SelectedNations.Contains(nation);
- ToggleNationSelection(nation, args))" oncontextmenu="return false;">
+ ToggleNationSelection(nation, args))" oncontextmenu="return false;">
@Localizer.GetAppLocalization(nation.ShipNationToString()).Localization
}
@@ -147,7 +147,7 @@
@foreach (var category in ViewModel!.AvailableShipCategories)
{
bool isSelected = ViewModel.SelectedCategories.Contains(category);
- ToggleCategorySelection(category, args))" oncontextmenu="return false;">
+ ToggleCategorySelection(category, args))" oncontextmenu="return false;">
@Localizer.GetAppLocalization(category.ShipCategoryToString()).Localization
}
@@ -203,11 +203,6 @@
return active ? Variant.Filled : Variant.Outlined;
}
- private static Color GetColorFromBool(bool active)
- {
- return active ? Color.Primary : Color.Secondary;
- }
-
private async Task ToggleTierSelection(int tier, MouseEventArgs args)
{
if (args.Button == 2)
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AaDefenseFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AaDefenseFragment.razor
index 5c0ac1bb7..98d4b2a3e 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AaDefenseFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AaDefenseFragment.razor
@@ -33,9 +33,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -50,9 +48,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -67,9 +63,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -84,9 +78,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -101,9 +93,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -118,9 +108,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -135,9 +123,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -152,9 +138,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -169,9 +153,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -186,9 +168,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -203,11 +183,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AerialTorpedoesFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AerialTorpedoesFragment.razor
index 592d8b291..94612396f 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AerialTorpedoesFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AerialTorpedoesFragment.razor
@@ -49,9 +49,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -75,9 +73,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -101,9 +97,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -127,9 +121,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -153,9 +145,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -179,9 +169,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -205,9 +193,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -231,9 +217,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -257,9 +241,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -283,9 +265,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -309,9 +289,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -335,9 +313,7 @@
}
else if (classes is null && !context.Item.TorpedoBombers.WeaponDamage.Any())
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
else if (classes is not null)
{
@@ -356,11 +332,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AirStrikeFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AirStrikeFragment.razor
index 852325492..dd1435063 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AirStrikeFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AirStrikeFragment.razor
@@ -40,9 +40,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -57,9 +55,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -74,9 +70,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -91,9 +85,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -108,9 +100,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -125,9 +115,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -142,9 +130,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -159,9 +145,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -176,9 +160,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -193,9 +175,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -210,9 +190,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -227,9 +205,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -244,9 +220,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -261,9 +235,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -278,11 +250,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ApShellFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ApShellFragment.razor
index b537d56b2..b4e561fc2 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ApShellFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ApShellFragment.razor
@@ -38,9 +38,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -55,9 +53,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -72,9 +68,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -89,9 +83,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -106,9 +98,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -123,9 +113,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -140,9 +128,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -157,9 +143,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -174,9 +158,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -191,9 +173,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -208,9 +188,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -225,11 +203,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AswFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AswFragment.razor
index 1af2df3ad..682b1e564 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AswFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/AswFragment.razor
@@ -40,9 +40,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -57,9 +55,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -74,9 +70,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -91,9 +85,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -108,9 +100,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -125,9 +115,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -142,9 +130,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -159,9 +145,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -176,9 +160,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -193,9 +175,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -210,9 +190,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -227,9 +205,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -244,9 +220,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -261,9 +235,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -278,11 +250,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombersFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombersFragment.razor
index be69b1602..51184d2fe 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombersFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombersFragment.razor
@@ -59,9 +59,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -85,9 +83,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -111,9 +107,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -137,9 +131,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -163,9 +155,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -189,9 +179,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -215,9 +203,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -241,9 +227,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -267,9 +251,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -293,9 +275,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -319,9 +299,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -345,9 +323,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -371,9 +347,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -397,9 +371,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -423,9 +395,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -449,9 +419,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -475,9 +443,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -501,9 +467,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -527,9 +491,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -553,9 +515,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -579,9 +539,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -605,9 +563,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -631,9 +587,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -657,9 +611,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -683,9 +635,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -709,11 +659,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombsFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombsFragment.razor
index 307470738..1f29e0d23 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombsFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/BombsFragment.razor
@@ -48,9 +48,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -75,9 +73,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -101,9 +97,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -127,9 +121,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -153,9 +145,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -176,9 +166,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -188,9 +176,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -211,9 +197,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -223,9 +207,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -246,9 +228,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -258,9 +238,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -281,9 +259,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -293,9 +269,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -316,9 +290,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -328,9 +300,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -351,9 +321,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -363,9 +331,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -386,9 +352,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -398,11 +362,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ConcealmentFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ConcealmentFragment.razor
index 210725916..4e090efa8 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ConcealmentFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ConcealmentFragment.razor
@@ -27,9 +27,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -44,9 +42,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -61,9 +57,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -78,9 +72,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -95,9 +87,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -112,11 +102,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/HeShellFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/HeShellFragment.razor
index 41f66ed10..588122e67 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/HeShellFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/HeShellFragment.razor
@@ -37,9 +37,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -54,9 +52,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -71,9 +67,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -88,9 +82,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -105,9 +97,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -122,9 +112,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -139,9 +127,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -156,9 +142,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -173,9 +157,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -190,9 +172,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -207,9 +187,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -224,11 +202,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/MainBatteryFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/MainBatteryFragment.razor
index 2acfe6b2f..4934982a7 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/MainBatteryFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/MainBatteryFragment.razor
@@ -49,9 +49,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -66,9 +64,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -83,9 +79,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -100,9 +94,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -117,9 +109,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -134,9 +124,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -151,9 +139,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -168,9 +154,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -185,9 +169,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -203,9 +185,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -220,9 +200,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -237,9 +215,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -254,9 +230,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -271,9 +245,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -288,9 +260,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -305,9 +275,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -322,11 +290,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ManeuverabilityFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ManeuverabilityFragment.razor
index 97028b45a..539da4726 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ManeuverabilityFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/ManeuverabilityFragment.razor
@@ -38,9 +38,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -55,9 +53,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -72,9 +68,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -89,9 +83,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -106,9 +98,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -123,9 +113,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -140,9 +128,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -157,9 +143,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -174,9 +158,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -191,9 +173,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -208,9 +188,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -225,9 +203,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -236,4 +212,4 @@
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketPlanesFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketPlanesFragment.razor
index c22461167..31b68be2d 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketPlanesFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketPlanesFragment.razor
@@ -58,9 +58,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -84,9 +82,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -110,9 +106,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -136,9 +130,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -162,9 +154,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -188,9 +178,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -214,9 +202,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -240,9 +226,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -266,9 +250,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -292,9 +274,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -318,9 +298,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -344,9 +322,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -370,9 +346,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -396,9 +370,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -422,9 +394,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -448,9 +418,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -474,9 +442,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -500,9 +466,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -526,9 +490,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -552,9 +514,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -578,9 +538,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -604,9 +562,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -630,9 +586,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -656,9 +610,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -682,11 +634,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketsFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketsFragment.razor
index cbdb3b2c9..3d426a141 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketsFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/RocketsFragment.razor
@@ -48,9 +48,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -74,9 +72,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -100,9 +96,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -126,9 +120,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -152,9 +144,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -175,9 +165,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -187,9 +175,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -210,9 +196,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -222,9 +206,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -245,9 +227,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -257,9 +237,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -280,9 +258,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -292,9 +268,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -315,9 +289,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -327,9 +299,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -350,9 +320,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -362,9 +330,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -385,9 +351,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
if (i < items.Count - 1)
{
@@ -397,11 +361,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SapShellFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SapShellFragment.razor
index 42c633527..3daaec774 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SapShellFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SapShellFragment.razor
@@ -35,9 +35,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -52,9 +50,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -69,9 +65,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -86,9 +80,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -103,9 +95,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -120,9 +110,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -137,9 +125,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -154,9 +140,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -171,9 +155,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -188,11 +170,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryFragment.razor
index 2f6809fc7..43143afb4 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryFragment.razor
@@ -47,9 +47,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -74,9 +72,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -91,9 +87,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -117,9 +111,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -143,9 +135,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -169,9 +159,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -195,9 +183,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -212,11 +198,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryShellsFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryShellsFragment.razor
index c426ff603..f5368ffc5 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryShellsFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SecondaryBatteryShellsFragment.razor
@@ -49,9 +49,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -66,9 +64,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -92,9 +88,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -118,9 +112,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -144,9 +136,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -170,9 +160,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -196,9 +184,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -222,9 +208,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -248,9 +232,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -274,9 +256,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -300,9 +280,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -326,9 +304,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -352,9 +328,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -378,11 +352,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SonarFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SonarFragment.razor
index fa4278a86..093558277 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SonarFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SonarFragment.razor
@@ -33,9 +33,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -50,9 +48,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -67,9 +63,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -84,9 +78,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -101,9 +93,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -118,9 +108,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -135,9 +123,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -152,11 +138,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SurvivabilityFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SurvivabilityFragment.razor
index 4def345dd..bc05d686d 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SurvivabilityFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/SurvivabilityFragment.razor
@@ -39,9 +39,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -56,9 +54,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -75,9 +71,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -96,9 +90,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -115,9 +107,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -136,11 +126,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoBombersFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoBombersFragment.razor
index ddd7b78ff..504836ec6 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoBombersFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoBombersFragment.razor
@@ -58,9 +58,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -84,9 +82,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -110,9 +106,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -136,9 +130,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -162,9 +154,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -188,9 +178,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -214,9 +202,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -240,9 +226,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -266,9 +250,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -292,9 +274,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -318,9 +298,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -344,9 +322,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -370,9 +346,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -396,9 +370,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -422,9 +394,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -448,9 +418,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -474,9 +442,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -500,9 +466,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -526,9 +490,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -552,9 +514,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -578,9 +538,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -604,9 +562,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -630,9 +586,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -656,9 +610,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -682,11 +634,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoesFragment.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoesFragment.razor
index 4f1605573..6f50aa525 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoesFragment.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/TorpedoesFragment.razor
@@ -52,9 +52,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -85,16 +83,12 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -109,9 +103,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -126,9 +118,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -143,9 +133,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -160,9 +148,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -177,9 +163,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -203,9 +187,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -229,9 +211,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -242,9 +222,7 @@
List torps = context.Item.Torpedo.FullSalvoDamage.Where(x => !string.IsNullOrEmpty(x)).ToList();
if (torps.Count == 0)
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
else
{
@@ -283,9 +261,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -309,9 +285,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -335,9 +309,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -361,9 +333,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -387,9 +357,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -413,9 +381,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -439,9 +405,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -465,9 +429,7 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
@@ -491,9 +453,7 @@
}
else if (classes is null && !context.Item.Torpedo.Damage.Any())
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
else if (classes is not null)
{
@@ -512,11 +472,9 @@
}
else
{
-
- @ShipComparisonViewModel.DataNotAvailable
-
+ @UtilityFragments.DataNotAvailableFragment
}
};
-}
\ No newline at end of file
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/UtilityFragments.razor b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/UtilityFragments.razor
new file mode 100644
index 000000000..a061ad3d2
--- /dev/null
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/GridSections/UtilityFragments.razor
@@ -0,0 +1,10 @@
+@code {
+ // Parameter needs to be named __builder, otherwise compilation will fail.
+ // ReSharper disable once InconsistentNaming UnusedParameter.Local
+ public static readonly RenderFragment DataNotAvailableFragment = __builder =>
+ {
+
+ @ShipComparisonViewModel.DataNotAvailable
+
+ };
+}
diff --git a/WoWsShipBuilder.Common/Features/ShipComparison/ShipComparison.razor b/WoWsShipBuilder.Common/Features/ShipComparison/ShipComparison.razor
index 928f30f8e..4abedf333 100644
--- a/WoWsShipBuilder.Common/Features/ShipComparison/ShipComparison.razor
+++ b/WoWsShipBuilder.Common/Features/ShipComparison/ShipComparison.razor
@@ -56,7 +56,9 @@
@if (ViewModel is not null)
{
-
+
+
+
if (!string.IsNullOrEmpty(ViewModel.ResearchedShip))
{
@@ -144,17 +146,17 @@
-
+
-
+
-
+
ViewShipStats(context.Item.ShipBuildContainer))">
@LocalizeShipName(context.Item.ShipIndex)
@@ -208,7 +210,7 @@
}
else
{
- EditBuilds(context.Item))">
+ EditBuilds(context.Item))">
@Build.DefaultBuildName
}
@@ -251,7 +253,7 @@
private MudDataGrid dataGrid = default!;
- private const string StickyColumnsBackgroundColor = "background-color: #242424";
+ private const string StickyColumnsBackgroundColor = "background-color: #262626";
private const string TiersUrlParameter = "t";