You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored the `Home.razor` component to improve the UI by dynamically rendering buttons based on the state of `ApiKey` and `KnowledgebaseFileExists`. Consolidated conditional logic into a single `<div>` for better structure and maintainability.
Added a new `SettingsClicked` method to handle navigation to the Settings page and update visibility states. Removed redundant `<div>` blocks for cleaner code.
<RadzenButtonclass="step-button"Text="To get started enter your AI key on the Settings page"Click="@SettingsClicked"Style="background-color: green;"ButtonStyle="ButtonStyle.Primary" />
74
+
}
75
+
else
76
+
{
77
+
@if (!KnowledgebaseFileExists)
78
+
{
79
+
<RadzenButtonclass="step-button"Text="Build your Knowledgebase"Click="@KnowledgebaseClicked"Style="background-color: green;"ButtonStyle="ButtonStyle.Primary" />
80
+
}
81
+
else
82
+
{
83
+
<RadzenButtonclass="step-button"Text="Click here to create an RFP Response"Click="@ResponseClicked"Style="background-color: green;"ButtonStyle="ButtonStyle.Primary" />
0 commit comments