Skip to content

Commit

Permalink
Remove the long operation from create page (#47)
Browse files Browse the repository at this point in the history
* Remove the long operation from create page and fix the logic of calling the relay

* act on review
  • Loading branch information
dangershony authored Mar 4, 2024
1 parent 664f964 commit a3a54fd
Show file tree
Hide file tree
Showing 6 changed files with 338 additions and 152 deletions.
10 changes: 10 additions & 0 deletions src/Angor/Client/Models/FounderProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@ public class FounderProject : Project
{
public int ProjectIndex { get; set; }
public DateTime? LastRequestForSignaturesTime { get; set; }

public bool NostrMetadataCreated()
{
return !string.IsNullOrEmpty(Metadata?.Name);
}

public bool NostrApplicationSpecificDataCreated()
{
return ProjectInfo?.Stages.Any() ?? false;
}
}
2 changes: 1 addition & 1 deletion src/Angor/Client/Models/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public Project(ProjectIndexerData indexerData)
public ProjectMetadata? Metadata { get; set; }
public ProjectInfo ProjectInfo { get; set; }

public string CreationTransactionId { get; set; }
public string? CreationTransactionId { get; set; }

}
Loading

0 comments on commit a3a54fd

Please sign in to comment.