Improve apps (#19120)
fixes https://discord.com/channels/1130383047699738754/1488094970241089586
This commit is contained in:
+16
@@ -17,6 +17,7 @@ import {
|
||||
IconAlertTriangle,
|
||||
IconBook,
|
||||
IconBox,
|
||||
IconBrandNpm,
|
||||
IconCheck,
|
||||
IconCommand,
|
||||
IconDownload,
|
||||
@@ -221,6 +222,11 @@ export const SettingsAvailableApplicationDetails = () => {
|
||||
const sourceType = detail?.sourceType;
|
||||
const isNpmApp = sourceType === ApplicationRegistrationSourceType.NPM;
|
||||
const registrationId = detail?.id;
|
||||
const sourcePackage = detail?.sourcePackage;
|
||||
const sourcePackageUrl =
|
||||
isNpmApp && detail?.sourcePackage
|
||||
? `https://www.npmjs.com/package/${detail.sourcePackage}`
|
||||
: undefined;
|
||||
|
||||
const isUnlisted = isDefined(detail) && !detail.isListed;
|
||||
const installedApp = applicationData?.findOneApplication;
|
||||
@@ -519,6 +525,16 @@ export const SettingsAvailableApplicationDetails = () => {
|
||||
{t`Report and issue`}
|
||||
</StyledLink>
|
||||
)}
|
||||
{sourcePackageUrl && (
|
||||
<StyledLink
|
||||
href={sourcePackageUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<IconBrandNpm size={16} />
|
||||
{t`Npm package`}
|
||||
</StyledLink>
|
||||
)}
|
||||
</StyledSidebarSection>
|
||||
)}
|
||||
</StyledSidebar>
|
||||
|
||||
Reference in New Issue
Block a user