Skip to content

Commit

Permalink
revert change for Founder.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
itailiors committed Dec 9, 2024
1 parent 04a9487 commit 12437e8
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions src/Angor/Client/Pages/Founder.razor
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,14 @@

</div>
</div>
<div class="tooltip-container" data-bs-toggle="tooltip" title="@GetCreateButtonTooltip()">
<button
class="btn btn-border"
@onclick="NavigateToCreateProject"
disabled="@scanningForProjects || @(founderProjects.Count >= 14)">
<i>
<Icon IconName="add"></Icon>
</i>
<span class="nav-link-text ms-1">
@(scanningForProjects ? "Scanning..." : "Create Project")
</span>
</button>
</div>
<button class="btn btn-border" @onclick="NavigateToCreateProject" disabled="@scanningForProjects">
<i>
<Icon IconName="add"></Icon>
</i>
<span class="nav-link-text ms-1">
@(scanningForProjects ? "Scanning..." : "Create Project")
</span>
</button>

</div>
<p class="mb-0 font-weight-normal text-sm mt-4">
Expand Down Expand Up @@ -219,14 +214,5 @@

NavigationManager.NavigateTo("/create");
}
private string GetCreateButtonTooltip()
{
if (founderProjects.Count >= 15)
return "You have reached the maximum number of projects. Please manage your existing projects.";
if (scanningForProjects)
return "Scanning in progress...";
return "Create a new project.";
}


}

0 comments on commit 12437e8

Please sign in to comment.