-
Notifications
You must be signed in to change notification settings - Fork 6
Confirmation modal for new both DREF Operational Update and final report #2048
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
base: project/dref-translation
Are you sure you want to change the base?
Conversation
|
| @@ -1,11 +1,11 @@ | |||
| { | |||
| "parent": "000051-1758354992698.json", | |||
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.
Lets remove translation migration for now. We can do that all together in the future.
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.
this might be the last PR for the Project branch,
| formData: true, | ||
| url, | ||
| method: 'POST', | ||
| useCurrentLanguageForMutation: true, |
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.
We should pass this down as prop and use it only where necessary, this might affect the other places where input is currently being used
| // FIXME: fix typing in server (low priority) | ||
| // the server generated type for response and body is the same | ||
| body: (body) => body as never, | ||
| useCurrentLanguageForMutation: true, |
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.
We should pass this down as prop and use it only where necessary, this might affect the other places where input is currently being used
| .add-ops-update-modal { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--go-ui-spacing-lg); | ||
| } |
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.
Is this styling needed?
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.
Yes it is needed for now.
| } else if (method === 'POST' || method === 'PUT' || method === 'PATCH') { | ||
| // Mutation | ||
| defaultHeaders['Accept-Language'] = useCurrentLanguageForMutation ? currentLanguage : 'en'; | ||
| if (isDefined(enforceLanguageForMutation)) { | ||
| defaultHeaders['Accept-Language'] = enforceLanguageForMutation; | ||
| } else if (useCurrentLanguageForMutation) { | ||
| defaultHeaders['Accept-Language'] = currentLanguage; | ||
| } else { | ||
| defaultHeaders['Accept-Language'] = 'en'; | ||
| } |
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.
We might need to add default fallback as well
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.
Let's remove this file for now, the project branch already has 2 migration file which starts with 52
Addresses
Depends On
Changes
This PR Ensures:
console.logstatements meant for debugging