Browse Source

Fixes #467. Set the default document name if it's empty.

pull/473/head
Alper Ebicoglu 8 years ago
parent
commit
ad71967b2d
  1. 6
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

6
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -69,7 +69,11 @@ namespace Volo.Docs.Pages.Documents.Project
ProjectFormat = projectDto.Format;
if (DocumentName.IsNullOrWhiteSpace())
{
DocumentName = projectDto.DefaultDocumentName;
}
DocumentNameWithExtension = DocumentName + "." + projectDto.Format;
var versions = await _documentAppService.GetVersions(projectDto.ShortName, projectDto.DefaultDocumentName,

Loading…
Cancel
Save