This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): add dynamic translation to agent detail form (#311)
* fix(title): reference correct value * feat(resolvers): initialize new agent object with dynamic content * test(update-agent): add dependencies * style(app): reorder statements, clean up aliases * feat(i18n, title): add `setTranslation`, translations * feat, refactor(agents): use event emitter instead of state for trigger * feat(models, dynamic-form): add and bind `formTitleParams` to template * feat(agent-detail): add `isSetTranslation` boolean * feat(agent-detail): disable form control based on `isSetTranslation` * feat(agent-detail): update submit action based on conditions * feat(agent-detail): map selected language to form * feat(agent-detail): set form name and params * test(agent-detail): add test dependencies * feat(content-routing): wire up `set-translation/:id/:languageCode` route * refactor(agent): improve typing * feat(content, i18n): add translation for `set-translation` route name * refactor(content-routing): adds HasValidLanguageGuard to `set-translation` route * feat(agent-detail, dynamic-form-action, JSONs): creates a new property `setTranslation` under the dynamicForm.action & adds translation for its value in all of the JSON files. Uses this new property to set the form submit button text when setting translation on an agent * refactor(form-input, form-select): reads formControl from the `group.get()` if the fieldConfig is not for dynamicContent translation fields. Otherwise uses `group.control` to get the value of fields that requires translation * refactor(agent): removes description property from agent dto since it is nested inside dynamicContent * chore(agent-detail): adds TODO to send request to the server to set Translation Co-authored-by: Pratima Sakinala <[email protected]>
- Loading branch information
1 parent
935545e
commit f26e384
Showing
30 changed files
with
212 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.