Skip to content

Commit

Permalink
Added tabs to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-dutton committed Oct 25, 2023
1 parent b8d0151 commit a592cbb
Show file tree
Hide file tree
Showing 6 changed files with 537 additions and 482 deletions.
1 change: 0 additions & 1 deletion src/apps/blazor-app/Components/Base/Card.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div class="@css @bg p-8 rounded-xl shadow-lg">

@ChildContent
</div>

Expand Down
4 changes: 0 additions & 4 deletions src/apps/blazor-app/Components/Base/Image.razor
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ else
if (ImageName != null)
{
ImageData = ImageName;
if (ImageName.Equals("Small-Home2.svg"))
{
Console.WriteLine("Image.razor: " + ImageName);
}
if (Path.Exists("wwwroot/assets/" + ImageName))
{
hasPath = true;
Expand Down
446 changes: 446 additions & 0 deletions src/apps/blazor-app/Components/Dashboard/Appliances.razor

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@

protected override void OnParametersSet()
{
init();
}

public void init(){
satteliteImageSrc = "";
monthlyFluxMap = new string[12];
annualFluxData = null;
Expand Down
11 changes: 2 additions & 9 deletions src/apps/blazor-app/Components/Dashboard/LocationInfo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,12 @@
public int solarScore { get; set; }
[Parameter]
public bool displayNewData { get; set; }
public int selectedSystem { get; set; }
[Parameter]
public int selectedSystem { get; set; } = 0;
private bool displayImage = false;
protected override void OnParametersSet()
{
for (int i = 0; i < systems!.Count; i++)
{
if (reports![selectedReport].systemId == systems[i].systemId)
{
selectedSystem = i;
}
}
if (currentLocationData != null)
{
if (currentLocationData.satteliteImageData != null)
Expand Down
Loading

0 comments on commit a592cbb

Please sign in to comment.