Skip to content

Commit

Permalink
Fix for #1341
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Dec 14, 2023
1 parent 8d8ebe2 commit c303023
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ export const ChangePhaseDialog: FC = () => {
</DialogTitle>
<DialogContent className={styles.dialogContent}>
<Label weight='semibold'>
{format(
strings.ChangePhaseDialogSubtitle,
context.state.phase.name,
context.state.confirmPhase.name
)}
{context.state.phase
? format(
strings.ChangePhaseDialogSubtitle,
context.state.phase?.name,
context.state.confirmPhase.name
)
: format(strings.ChangeFirstPhaseDialogSubtitle, context.state.confirmPhase.name)}
</Label>
{state.view === View.Confirm &&
format(strings.ConfirmChangePhase, context.state.confirmPhase.name)}
Expand Down
1 change: 1 addition & 0 deletions SharePointFramework/ProjectWebParts/src/loc/mystrings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ declare interface IProjectWebPartsStrings {
CategoryFieldLabel: string
ChangePhaseDialogTitle: string
ChangePhaseDialogSubtitle: string
ChangeFirstPhaseDialogSubtitle: string
ChangePhaseText: string
ChangingPhaseDescription: string
ChecklistCommentDescription: string
Expand Down
1 change: 1 addition & 0 deletions SharePointFramework/ProjectWebParts/src/loc/nb-no.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ define([], function () {
CategoryFieldLabel: 'Kategori',
ChangePhaseDialogTitle: 'Endre til {0} fasen',
ChangePhaseDialogSubtitle: 'Dette vil medføre endring fra {0} til {1} fasen',
ChangeFirstPhaseDialogSubtitle: 'Dette vil medføre at prosjektet settes til {0} fasen',
ChangePhaseText: 'Endre til denne fasen',
ChangingPhaseDescription: 'Endrer fase til {0}',
ChecklistCommentDescription: 'Kommentar er obligatorisk om sjekkpunktet skal markeres som "Ikke relevant" eller "Fortsatt åpen".',
Expand Down

0 comments on commit c303023

Please sign in to comment.