Skip to content

Commit

Permalink
Merge pull request #6467 from Avarjana/master
Browse files Browse the repository at this point in the history
Add doc links to M2M app and Standard app creation wizard
  • Loading branch information
Avarjana authored Jun 19, 2024
2 parents 32e82d3 + 3bd1bdc commit 16c7ef3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/perfect-avocados-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/admin.applications.v1": patch
"@wso2is/admin.extensions.v1": patch
---

Add m2m and custom application doc links
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,14 @@ export const MinimalAppCreateWizard: FunctionComponent<MinimalApplicationCreateW
return getLink("develop.applications.newApplication.mobileApplication.learnMore");
}

if (selectedTemplate?.templateId === ApplicationTemplateIdTypes.M2M_APPLICATION) {
return getLink("develop.applications.newApplication.m2mApplication.learnMore");
}

if (selectedTemplate?.templateId === ApplicationTemplateIdTypes.CUSTOM_APPLICATION) {
return getLink("develop.applications.newApplication.customApplication.learnMore");
}

// Returns undefined for application which does not have doc links.
// Used to hide the learn more link.
return undefined;
Expand Down
6 changes: 6 additions & 0 deletions features/admin.extensions.v1/configs/documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ export const getDocumentationLinksExtension = () : DocumentationLinksExtensionIn
smsOtp: undefined
},
newApplication: {
customApplication: {
learnMore: undefined
},
m2mApplication: {
learnMore: undefined
},
mobileApplication: {
learnMore: undefined
},
Expand Down
6 changes: 6 additions & 0 deletions features/admin.extensions.v1/configs/models/documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ interface ApplicationsDocumentationLinksInterface {
}
mobileApplication: {
learnMore: string;
},
m2mApplication: {
learnMore: string
},
customApplication: {
learnMore: string
}
}
managementApplication: {
Expand Down

0 comments on commit 16c7ef3

Please sign in to comment.