Skip to content

Commit

Permalink
removing condition to show button
Browse files Browse the repository at this point in the history
  • Loading branch information
efonsecab committed Apr 10, 2024
1 parent 4113956 commit dc10af0
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,7 @@
</FluentAccordion>
</div>
<div>
@if (!this.IsPlanCreated)
{
<FluentButton Type="ButtonType.Submit">Save</FluentButton>
}
else
{
<FluentLabel Typo="Typography.Body">Your Plan has been updated</FluentLabel>
}
<FluentButton Type="ButtonType.Submit">Save</FluentButton>
</div>
</FluentEditForm>

Expand All @@ -88,7 +81,6 @@
private bool IsBusy { get; set; }
private string? GeneratedYouTubeThumbnailUri { get; set; }
private string? RevisedPrompt { get; set; }
private bool IsPlanCreated { get; set; }
private VideoPlanModel? originalVideoPlan { get; set; }

protected override async Task OnInitializedAsync()
Expand Down Expand Up @@ -128,7 +120,6 @@
this.updateVideoPlanModel, this.cancellationTokenSource.Token);
this.toastService.ShowSuccess("Your Plan has been updated");
StateHasChanged();
this.IsPlanCreated = true;
var promptInfo = await this.promptGeneratorService.GetPromptCompleteInfoAsync(promptName:
"YouTubeThumbnail", cancellationToken: this.cancellationTokenSource.Token);
string prompt = $"{promptInfo!.BaseText}. Video Title: {this.updateVideoPlanModel.VideoName}. Video Description: {this.updateVideoPlanModel.VideoDescription}. Video Script: {this.updateVideoPlanModel.VideoScript}";
Expand Down

0 comments on commit dc10af0

Please sign in to comment.