diff --git a/Seenginx.Models/ConfigFile.cs b/Seenginx.Models/ConfigFile.cs index 079d052..2a0a55a 100644 --- a/Seenginx.Models/ConfigFile.cs +++ b/Seenginx.Models/ConfigFile.cs @@ -7,7 +7,6 @@ namespace Seenginx.Models public string FullPath { get; set; } public string Folder { get; set; } public string Name { get; set; } - public string DraftName { get; set; } public string Body { get; set; } public string DraftBody { get; set; } public string Permissions { get; set; } @@ -15,7 +14,7 @@ namespace Seenginx.Models public string[] Owners { get; set; } public string IsVisible { get; set; } = string.Empty; public string IsSelected { get; set; } = string.Empty; - public bool HasDraft => !string.IsNullOrEmpty(DraftName); + public bool HasDraft => !string.IsNullOrEmpty(DraftBody); public bool CanBeDeleted { get; set; } = true; public void Hide() { IsVisible = "is-hidden"; } diff --git a/Seenginx/Components/FilesWithEditor.razor b/Seenginx/Components/FilesWithEditor.razor index f1b3549..b2597b8 100644 --- a/Seenginx/Components/FilesWithEditor.razor +++ b/Seenginx/Components/FilesWithEditor.razor @@ -17,11 +17,19 @@ @if (IsAnyFileSelected) {