Skip to content

Commit

Permalink
Add doc links for m2m and custom app creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Avarjana committed Jun 19, 2024
1 parent 60bc74e commit ebef07e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
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 ebef07e

Please sign in to comment.