RED-7989 update edit entity form
This commit is contained in:
parent
f1f3bffcf1
commit
de31be252b
2
.gitignore
vendored
2
.gitignore
vendored
@ -48,3 +48,5 @@ migrations.json
|
||||
*.iml
|
||||
|
||||
docker-compose.yml
|
||||
|
||||
.nx/cache/
|
||||
|
||||
@ -149,7 +149,7 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
||||
caseSensitive: [{ value: !this.entity?.caseInsensitive, disabled: this.#isSystemManaged }],
|
||||
manageEntriesInDictionaryEditorOnly: [
|
||||
{
|
||||
value: !this.entity?.addToDictionaryAction,
|
||||
value: this.entity?.addToDictionaryAction,
|
||||
disabled: this.#isSystemManaged && !this.#isDossierRedaction,
|
||||
},
|
||||
],
|
||||
@ -216,7 +216,7 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
||||
|
||||
#formToObject(): IDictionary {
|
||||
// Fields which aren't set for hints, need additional check
|
||||
const addToDictionaryAction = !this.form.get('manageEntriesInDictionaryEditorOnly')?.value;
|
||||
const addToDictionaryAction = !!this.form.get('manageEntriesInDictionaryEditorOnly')?.value;
|
||||
const hasDictionary = !!this.form.get('hasDictionary')?.value;
|
||||
const dossierDictionaryOnly = !!this.form.get('dossierDictionaryOnly')?.value;
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
"dossier-dictionary-only": "Dossier dictionary only",
|
||||
"has-dictionary": "Has dictionary",
|
||||
"hint": "Hint",
|
||||
"manage-entries-in-dictionary-editor-only": "Manage entries in Dictionary editor only",
|
||||
"manage-entries-in-dictionary-editor-only": "Available in add/remove dialogs",
|
||||
"name": "Display Name",
|
||||
"name-placeholder": "Enter Name",
|
||||
"rank": "Rank",
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
"dossier-dictionary-only": "Dossier dictionary only",
|
||||
"has-dictionary": "Has dictionary",
|
||||
"hint": "Hint",
|
||||
"manage-entries-in-dictionary-editor-only": "Manage entries in Dictionary editor only",
|
||||
"manage-entries-in-dictionary-editor-only": "Available in add/remove dialogs",
|
||||
"name": "Display Name",
|
||||
"name-placeholder": "Enter Name",
|
||||
"rank": "Rank",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user