diff --git a/Portfolio.WebUI.Server/Components/Pages/PokemonCreate.razor b/Portfolio.WebUI.Server/Components/Pages/PokemonCreate.razor index 7ee699d..e6309f2 100644 --- a/Portfolio.WebUI.Server/Components/Pages/PokemonCreate.razor +++ b/Portfolio.WebUI.Server/Components/Pages/PokemonCreate.razor @@ -1,61 +1,105 @@ @page "/pokemonsleep/add-new-pokemon" + @inject IPokemonService PokemonService @inject NavigationManager Navigation -
Submitting...
} else { -Loading...
} else { -+ | # | +Pokemon | +Sleep Type | +Speciality | ++ | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | # | -Pokemon | -Sleep Type | -Speciality | -- | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
- }
- @if (pokemon.VariationName == "Paldean")
- {
+ }
+ @if (pokemon.VariationName == "Paldean")
+ {
string URL = $"/pokemon_images/normal/{pokemon.PokemonId}-{pokemon.VariationName.ToLower()}{pokemon.PokemonName.ToLower()}.png";
string ShinyURL = $"/pokemon_images/shiny/{pokemon.PokemonId}-{pokemon.VariationName.ToLower()}{pokemon.PokemonName.ToLower()}.png";
|
+ }
}
- }
- else // Base Case
- {
- string URL = $"/pokemon_images/normal/{pokemon.PokemonId}.png"; ;
- string ShinyURL = $"/pokemon_images/shiny/{pokemon.PokemonId}.png";
-
- |
- }
-
- @pokemon.PokemonId | - - @if (pokemon.IsVariation) - { - @if (pokemon.VariationName == "Alolan") + else // Base Case { -Alolan @pokemon.PokemonName | + string URL = $"/pokemon_images/normal/{pokemon.PokemonId}.png"; ; + string ShinyURL = $"/pokemon_images/shiny/{pokemon.PokemonId}.png"; +
+ |
}
- @if (pokemon.VariationName == "Paldean")
+
+
+ @pokemon.PokemonId | + + + @if (pokemon.IsVariation) // If a Variant { -Paldean @pokemon.PokemonName | + @if (pokemon.VariationName == "Alolan") + { +Alolan @pokemon.PokemonName | + } + @if (pokemon.VariationName == "Paldean") + { +Paldean @pokemon.PokemonName | + } } - } - else // Base Case - { + else // Otherwise, Base Case + {@pokemon.PokemonName | - } + } + +@pokemon.SleepType | -@pokemon.SleepType | -@pokemon.Speciality | -- - + + | -