-
Notifications
You must be signed in to change notification settings - Fork 18
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
Dynamic title from pisa #731
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Only F(Y/M)I
/** | ||
* Fetches the schema for `subPath`. | ||
* */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- FYI This comment and the duplicate in
fetchAttributes
explain internals which are not really interesting for the caller.
title: async () => | ||
(await load(currentLanguage)) === 'de' | ||
? 'Allgemeine Marketingzustimmung' | ||
: 'General marketing consent', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- FMI Where can I find this in use in the content?
@@ -16,6 +16,8 @@ async function attributes(): Promise<DataAttributeDefinitions> { | |||
export function opportunityParamsFallback() { | |||
return { | |||
attributes, | |||
title: async () => | |||
(await load(currentLanguage)) === 'de' ? 'Chance' : 'Opportunity', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- FYI The docs use
Geschäftschance
. https://help.pisasales.com/de/lead-management-portal-cf5ef30b4513d38a
@@ -169,6 +169,8 @@ async function attributes(): Promise<DataAttributeDefinitions> { | |||
export function ticketParamsFallback() { | |||
return { | |||
attributes, | |||
title: async () => | |||
(await load(currentLanguage)) === 'de' ? 'Ticket' : 'Ticket', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- FYI could be a constant
@@ -29,6 +29,10 @@ async function attributes(): Promise<DataAttributeDefinitions> { | |||
export function serviceObjectDocumentParamsFallback() { | |||
return { | |||
attributes, | |||
title: async () => | |||
(await load(currentLanguage)) === 'de' | |||
? 'Serviceobjektdokument' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- FYI maybe make the composition clearer by Serviceobjekt-Dokument
Pisa still needs to provide
title
. But the fallback is good enough for now.