add edit dictionary admin
This commit is contained in:
parent
42a16f11b5
commit
7aca8ad7a1
@ -72,6 +72,12 @@
|
||||
{{ 'add-edit-dictionary.form.case-sensitive' | translate }}
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
|
||||
<div class="red-input-group">
|
||||
<mat-checkbox name="addToDictionaryAction" formControlName="addToDictionaryAction" color="primary">
|
||||
{{ 'add-edit-dictionary.form.add-to-dictionary-action' | translate }}
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dialog-actions">
|
||||
|
||||
@ -34,6 +34,7 @@ export class AddEditDictionaryDialogComponent {
|
||||
rank: [this.dictionary?.rank, Validators.required],
|
||||
hexColor: [this.dictionary?.hexColor, [Validators.required, Validators.minLength(7)]],
|
||||
hint: [!!this.dictionary?.hint],
|
||||
addToDictionaryAction: [!!this.dictionary?.addToDictionaryAction],
|
||||
caseSensitive: [this.dictCaseSensitive]
|
||||
});
|
||||
}
|
||||
@ -99,6 +100,7 @@ export class AddEditDictionaryDialogComponent {
|
||||
hint: this.dictionaryForm.get('hint').value,
|
||||
type: this.dictionaryForm.get('type').value,
|
||||
rank: this.dictionaryForm.get('rank').value,
|
||||
addToDictionaryAction: this.dictionaryForm.get('addToDictionaryAction').value,
|
||||
ruleSetId: this._ruleSetId
|
||||
};
|
||||
}
|
||||
|
||||
@ -585,7 +585,8 @@
|
||||
"color-placeholder": "#",
|
||||
"redaction": "Redaction",
|
||||
"hint": "Hint",
|
||||
"case-sensitive": "Case Sensitive"
|
||||
"case-sensitive": "Case Sensitive",
|
||||
"add-to-dictionary-action": "Available for add to dictionary"
|
||||
},
|
||||
"error": {
|
||||
"dictionary-already-exists": "Dictionary with this name already exists!",
|
||||
@ -776,7 +777,7 @@
|
||||
"defaultColor": "Default Color",
|
||||
"requestAdd": "Request Add",
|
||||
"requestRemove": "Request Remove",
|
||||
"notRedacted": "Not Redacted"
|
||||
"notRedacted": "Skipped"
|
||||
},
|
||||
"action": {
|
||||
"edit": "Edit Color"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user