Merge branch 'dev' into dev
This commit is contained in:
		| @ -7,37 +7,34 @@ | ||||
| @inject IStringLocalizer<Index> Localizer | ||||
| @inject IStringLocalizer<SharedResources> SharedLocalizer | ||||
|  | ||||
| @if (_package != null) | ||||
| { | ||||
|     <TabStrip> | ||||
|         <TabPanel Name="Download" ResourceKey="Download"> | ||||
|             @if (_upgradeavailable) | ||||
|             { | ||||
|                 <ModuleMessage Type="MessageType.Info" Message="Select The Download Button To Download The Framework Upgrade Package And Then Select Upgrade"></ModuleMessage> | ||||
|                 <button type="button" class="btn btn-primary" @onclick=@(async () => await Download(Constants.PackageId, @_package.Version))>@SharedLocalizer["Download"] @_package.Version</button> | ||||
|                 <button type="button" class="btn btn-success" @onclick="Upgrade">@SharedLocalizer["Upgrade"]</button> | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 <ModuleMessage Type="MessageType.Info" Message="Framework Is Already Up To Date"></ModuleMessage> | ||||
|             } | ||||
|         </TabPanel> | ||||
|         <TabPanel Name="Upload" ResourceKey="Upload"> | ||||
|             <ModuleMessage Type="MessageType.Info" Message="Upload A Framework Package (Oqtane.Framework.version.nupkg) And Then Select Upgrade"></ModuleMessage> | ||||
|             <table class="table table-borderless"> | ||||
|                 <tr> | ||||
|                     <td> | ||||
|                         <Label HelpText="Upload A Framework Package And Then Select Upgrade" ResourceKey="Framework">Framework: </Label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <FileManager Filter="nupkg" ShowFiles="false" Folder="Packages" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             </table> | ||||
| <TabStrip> | ||||
|     <TabPanel Name="Download" ResourceKey="Download"> | ||||
|         @if (_package != null && _upgradeavailable) | ||||
|         { | ||||
|             <ModuleMessage Type="MessageType.Info" Message="Select The Download Button To Download The Framework Upgrade Package And Then Select Upgrade"></ModuleMessage> | ||||
|             <button type="button" class="btn btn-primary" @onclick=@(async () => await Download(Constants.PackageId, @_package.Version))>@SharedLocalizer["Download"] @_package.Version</button> | ||||
|             <button type="button" class="btn btn-success" @onclick="Upgrade">@SharedLocalizer["Upgrade"]</button> | ||||
|         </TabPanel> | ||||
|     </TabStrip> | ||||
| } | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             <ModuleMessage Type="MessageType.Info" Message="Framework Is Already Up To Date"></ModuleMessage> | ||||
|         } | ||||
|     </TabPanel> | ||||
|     <TabPanel Name="Upload" ResourceKey="Upload"> | ||||
|         <ModuleMessage Type="MessageType.Info" Message="Upload A Framework Package (Oqtane.Framework.version.nupkg) And Then Select Upgrade"></ModuleMessage> | ||||
|         <table class="table table-borderless"> | ||||
|             <tr> | ||||
|                 <td> | ||||
|                     <Label HelpText="Upload A Framework Package And Then Select Upgrade" ResourceKey="Framework">Framework: </Label> | ||||
|                 </td> | ||||
|                 <td> | ||||
|                     <FileManager Filter="nupkg" ShowFiles="false" Folder="Packages" /> | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|         <button type="button" class="btn btn-success" @onclick="Upgrade">@SharedLocalizer["Upgrade"]</button> | ||||
|     </TabPanel> | ||||
| </TabStrip> | ||||
|  | ||||
| @code { | ||||
|     private Package _package; | ||||
| @ -76,7 +73,7 @@ | ||||
|             AddModuleMessage(Localizer["Info.Upgrade.Wait"], MessageType.Info); | ||||
|             ShowProgressIndicator(); | ||||
|             var interop = new Interop(JSRuntime); | ||||
|             await interop.RedirectBrowser(NavigateUrl(), 30); | ||||
|             await interop.RedirectBrowser(NavigateUrl(), 20); | ||||
|             await InstallationService.Upgrade(); | ||||
|         } | ||||
|         catch (Exception ex) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 gjwalk
					gjwalk