RED-7989 update edit entity form

This commit is contained in:
Dan Percic 2023-12-04 18:54:38 +02:00
parent f1f3bffcf1
commit de31be252b
4 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@ -48,3 +48,5 @@ migrations.json
*.iml
docker-compose.yml
.nx/cache/

View File

@ -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;

View File

@ -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",

View File

@ -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",