Merge pull request #869 from sbwalker/master

Module Creator should only include Framework References for 2.0.0 and above
This commit is contained in:
Shaun Walker 2020-11-07 16:45:30 -05:00 committed by GitHub
commit 2d344975ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.ModuleCreator
@namespace Oqtane.Modules.Admin.ModuleCreator
@inherits ModuleBase
@inject NavigationManager NavigationManager
@inject IModuleDefinitionService ModuleDefinitionService
@ -50,9 +50,12 @@
<select id="reference" class="form-control" @bind="@_reference">
@foreach (string version in Constants.ReleaseVersions.Split(','))
{
<option value="@(version)">@(version)</option>
if (Version.Parse(version).CompareTo(Version.Parse("2.0.0")) >= 0)
{
<option value="@(version)">@(version)</option>
}
}
<option value="local">Local</option>
<option value="local">Local Version</option>
</select>
</td>
</tr>