Module Creator should only include Framework References for 2.0.0 and above

This commit is contained in:
Shaun Walker 2020-11-07 16:44:41 -05:00
parent 5e801bd5ee
commit e0017065af

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.ModuleCreator
@namespace Oqtane.Modules.Admin.ModuleCreator
@inherits ModuleBase
@inject NavigationManager NavigationManager
@inject IModuleDefinitionService ModuleDefinitionService
@ -49,10 +49,13 @@
<td>
<select id="reference" class="form-control" @bind="@_reference">
@foreach (string version in Constants.ReleaseVersions.Split(','))
{
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>