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
2 changes: 2 additions & 0 deletions src/features/instantiate/containers/PartySelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { changeBodyBackground } from 'src/utils/bodyStyling';
import { getPageTitle } from 'src/utils/getPageTitle';
import { HttpStatusCodes } from 'src/utils/network/networking';
import { capitalizeName } from 'src/utils/stringHelper';
import { getHostname } from 'src/utils/urls/appUrlHelper';
import type { ApplicationMetadata } from 'src/features/applicationMetadata/types';
import type { IParty } from 'src/types/shared';

Expand Down Expand Up @@ -207,6 +208,7 @@ export const PartySelection = () => {
? 'party_selection.seeing_this_override'
: 'party_selection.seeing_this_preference'
}
params={[getHostname()]}
/>
</Paragraph>
</Flex>
Expand Down
4 changes: 2 additions & 2 deletions src/language/texts/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export function en() {
'instantiate.authorization_error_ask':
'If you are representing a person it is the one you are representing that can give you the required rights to start this service. If you are you representing an organization you have to ask for the required rights from persons with access delegation rights within your organization.',
'instantiate.authorization_error_check_rights':
'<a href="https://{0}/ui/Profile/" target="_blank">See who has rights to delegate access under "Others with rights within the organization"</a>.',
'<a href="https://am.ui.{0}/accessmanagement/ui" target="_blank">See who has rights to delegate access under "Others with rights within the organization"</a>.',
'instantiate.authorization_error_info_rights':
'<a href="https://{0}/hjelp/profil/enkelttjenester-og-roller/" target="_blank">Learn more about roles and rights</a>.',
'instantiate.authorization_error_info_customer_service': 'You can also contact customer service at {0}.',
Expand Down Expand Up @@ -292,7 +292,7 @@ export function en() {
'party_selection.show_sub_unit': 'Show sub units',
'party_selection.why_seeing_this': 'Why am I seeing this?',
'party_selection.seeing_this_preference':
'You can change your [profile settings](https://altinn.no/ui/Profile) to not get prompted for party selection each time you start a new instance. You can find this setting under **Profile** > **Advanced settings** > **Do not ask what party I represent each time I start to fill in a new form**.',
'You can change your [profile settings](https://af.{0}/profile/parties) to not get prompted for party selection each time you start a new instance. You can find this setting under **Profile** > **Parties**.',
'party_selection.seeing_this_override': 'This app has been configured to always prompt you for party selection.',
'payment.pay': 'Pay',
'payment.summary': 'Summary',
Expand Down
4 changes: 2 additions & 2 deletions src/language/texts/nb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function nb() {
'instantiate.authorization_error_ask':
'Om du representerer en person, er det den du representerer som kan gi deg rettighet til å starte tjenesten. Representerer du en organisasjon er det de som har rollen tilgangsstyring innad i organisasjonen som kan gi deg rettighet.',
'instantiate.authorization_error_check_rights':
'<a href="https://{0}/ui/Profile/" target="_blank">Se hvem som har rollen tilgangsstyring under "Andre med rettigheter til virksomheten"</a>.',
'<a href="https://am.ui.{0}/accessmanagement/ui" target="_blank">Se hvem som har rollen tilgangsstyring under "Andre med rettigheter til virksomheten"</a>.',
'instantiate.authorization_error_info_rights':
'<a href="https://{0}/hjelp/profil/enkelttjenester-og-roller/" target="_blank">Her finner du mer informasjon om roller og rettigheter</a>.',
'instantiate.authorization_error_info_customer_service': 'Du kan også kontakte oss på brukerservice {0}.',
Expand Down Expand Up @@ -296,7 +296,7 @@ export function nb() {
'party_selection.show_sub_unit': 'Vis underenheter',
'party_selection.why_seeing_this': 'Hvorfor ser jeg dette?',
'party_selection.seeing_this_preference':
'Du kan endre [profilinnstillingene](https://altinn.no/ui/Profile) dine for å ikke bli spurt om aktør hver gang du starter utfylling av et nytt skjema. Du finner denne innstillingen under **Profil** > **Avanserte innstillinger** > **Jeg ønsker ikke å bli spurt om aktør hver gang jeg starter utfylling av et nytt skjema**.',
'Du kan endre [profilinnstillingene](https://af.{0}/profile/parties) dine for å ikke bli spurt om aktør hver gang du starter utfylling av et nytt skjema. Du finner denne innstillingen under **Profil** > **Aktører**.',
'party_selection.seeing_this_override': 'Denne appen er satt opp til å alltid spørre om aktør.',
'payment.pay': 'Betal',
'payment.summary': 'Oppsummering',
Expand Down
4 changes: 2 additions & 2 deletions src/language/texts/nn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function nn() {
'instantiate.authorization_error_ask':
'Om du representerer ein person, er det den du representerer som kan gi deg dei naudsynte rettane til å starte tenesta. Representerer du ein organisasjon er det personar som har rolla tilgangsstyring innad i organisasjonen som kan gi deg dei naudsynte rettane.',
'instantiate.authorization_error_check_rights':
'<a href="https://{0}/ui/Profile/" target="_blank">Sjå kven som har rolla tilgangsstyring under "Andre med rettar til verksemda"</a>.',
'<a href="https://am.ui.{0}/accessmanagement/ui" target="_blank">Sjå kven som har rolla tilgangsstyring under "Andre med rettar til verksemda"</a>.',
'instantiate.authorization_error_info_rights':
'<a href="https://{0}/hjelp/profil/enkelttjenester-og-roller/" target="_blank">Her finn du meir informasjon om roller og rettar</a>.',
'instantiate.authorization_error_info_customer_service': 'Du kan også kontakte oss på brukarservice {0}.',
Expand Down Expand Up @@ -294,7 +294,7 @@ export function nn() {
'party_selection.show_sub_unit': 'Vis undereiningar',
'party_selection.why_seeing_this': 'Kvifor ser eg dette?',
'party_selection.seeing_this_preference':
'Du kan endra [profilinnstillingane](https://altinn.no/ui/Profile) dine for å ikkje bli spurt om aktør kvar gong du startar utfylling av eit nytt skjema. Du finn denne innstillinga under **Profil** > **Avanserte innstillingar** > **Eg ønskjer ikkje å bli spurt om aktør kvar gong eg startar utfylling av eit nytt skjema**.',
'Du kan endra [profilinnstillingane](https://af.{0}/profile/parties) dine for å ikkje bli spurt om aktør kvar gong du startar utfylling av eit nytt skjema. Du finn denne innstillinga under **Profil** > **Aktørar**.',
'party_selection.seeing_this_override': 'Denne appen er sett opp til å alltid spørja om aktør.',
'payment.pay': 'Betal',
'payment.summary': 'Oppsummering',
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/stateless-app/party-selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Stateless party selection', () => {

cy.startAppInstance(appFrontend.apps.stateless, { cyUser: 'accountant' });
cy.get(appFrontend.partySelection.appHeader).should('be.visible');
cy.findByText(/Jeg ønsker ikke å bli spurt om aktør hver gang/).should('be.visible');
cy.findByText(/ikke bli spurt om aktør hver gang/).should('be.visible');

cy.findAllByText(/personnr\. \d+/)
.first()
Expand Down
Loading