Skip to content
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
8 changes: 8 additions & 0 deletions frontend/packages/console-shared/src/utils/sample-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ const defaultSamples = (t: TFunction) =>
id: 'cl-namespace-dashboard',
targetResource: getTargetResource(ConsoleLinkModel),
},
{
title: t('console-shared~Add a link to the contact mail'),
description: t(
'console-shared~The contact mail link appears in the user menu below the username. The link will open the default email client with the email address filled in.',
),
id: 'cl-contact-mail',
targetResource: getTargetResource(ConsoleLinkModel),
},
],
)
.setIn(
Expand Down
2 changes: 2 additions & 0 deletions frontend/public/locales/en/console-shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@
"The application menu appears in the masthead below the 9x9 grid icon. Application menu links can include an optional image and section heading.": "The application menu appears in the masthead below the 9x9 grid icon. Application menu links can include an optional image and section heading.",
"Add a link to the namespace dashboard": "Add a link to the namespace dashboard",
"Namespace dashboard links appear on the project dashboard and namespace details pages in a section called \"Launcher\". Namespace dashboard links can optionally be restricted to a specific namespace or namespaces.": "Namespace dashboard links appear on the project dashboard and namespace details pages in a section called \"Launcher\". Namespace dashboard links can optionally be restricted to a specific namespace or namespaces.",
"Add a link to the contact mail": "Add a link to the contact mail",
"The contact mail link appears in the user menu below the username. The link will open the default email client with the email address filled in.": "The contact mail link appears in the user menu below the username. The link will open the default email client with the email address filled in.",
"Add catalog categories": "Add catalog categories",
"Provides a list of default categories which are shown in the Software Catalog. The categories must be added below customization developerCatalog.": "Provides a list of default categories which are shown in the Software Catalog. The categories must be added below customization developerCatalog.",
"Add project access roles": "Add project access roles",
Expand Down
13 changes: 13 additions & 0 deletions frontend/public/models/yaml-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,19 @@ spec:
namespaceDashboard:
namespaces:
- default
`,
)
.setIn(
[referenceForModel(k8sModels.ConsoleLinkModel), 'cl-contact-mail'],
`
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
name: example-contact-mail
spec:
href: 'mailto:[email protected]'
location: UserMenu
text: Contact Mail Link
`,
)
.setIn(
Expand Down