Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change upgrade URL to extension manifest URL instead of the upgrade service redirect #3834

Merged
merged 5 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class ExtensionDetailRow extends Component {
{this.getInUseDisplay(props._package.friendlyName, props._package.packageId)}
</GridCell>
<GridCell columnSize={ColumnSizes[4]}>
<a href={props._package.upgradeUrl} target="_blank" rel="noopener noreferrer" aria-label="Update">
<img src={props._package.upgradeIndicator} alt="Update"/>
<a href={props._package.url} target="_blank" rel="noopener noreferrer" aria-label="Update">
<img src={props._package.upgradeIndicator} alt="Update" />
</a>
</GridCell>
<GridCell columnSize={ColumnSizes[5]} style={{ paddingRight: 0 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
font-weight: bold;
margin-bottom: 3px;
}
.in-use{
.in-use {
color: @curiousBlue;
cursor: pointer;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information

#region Usings

using DotNetNuke.Common.Utilities;
Expand Down Expand Up @@ -47,6 +47,9 @@ public class PackageInfoSlimDto
[JsonProperty("packageIcon")]
public string PackageIcon { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("canDelete")]
public bool CanDelete { get; set; }

Expand All @@ -70,6 +73,7 @@ public PackageInfoSlimDto(int portalId, PackageInfo package)
this.UpgradeUrl = ExtensionsController.UpgradeRedirect(package.Version, package.PackageType, package.Name);
this.UpgradeIndicator = ExtensionsController.UpgradeIndicator(package.Version, package.PackageType, package.Name);
this.PackageIcon = ExtensionsController.GetPackageIcon(package);
this.Url = package.Url;
this.CanDelete = package.PackageID != Null.NullInteger && !package.IsSystemPackage && PackageController.CanDeletePackage(package, PortalSettings.Current);

if (package.PackageID != Null.NullInteger)
Expand Down