diff --git a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html index c466d7ab9..242c00288 100644 --- a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html +++ b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.html @@ -187,9 +187,18 @@
+ @if (isMandatorySystemField(field?.value)) { + + } + @else { {{'PLAN-BLUEPRINT-EDITOR.FIELDS.FIELD-REQUIRED' | translate}} - {{field.get('required').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} + } + {{field.get('required').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}}
}
diff --git a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts index dd4714d03..4cafa9fde 100644 --- a/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts +++ b/frontend/src/app/ui/admin/plan-blueprint/editor/plan-blueprint-editor.component.ts @@ -409,6 +409,12 @@ export class PlanBlueprintEditorComponent extends BaseEditor{{label}} diff --git a/frontend/src/common/modules/checkbox-field/noop-checkbox/noop-checkbox.component.scss b/frontend/src/common/modules/checkbox-field/noop-checkbox/noop-checkbox.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/frontend/src/common/modules/checkbox-field/noop-checkbox/noop-checkbox.component.ts b/frontend/src/common/modules/checkbox-field/noop-checkbox/noop-checkbox.component.ts new file mode 100644 index 000000000..655a05f65 --- /dev/null +++ b/frontend/src/common/modules/checkbox-field/noop-checkbox/noop-checkbox.component.ts @@ -0,0 +1,23 @@ +import { Component, Input } from "@angular/core"; +import { FormControl } from "@angular/forms"; +import { MAT_CHECKBOX_DEFAULT_OPTIONS } from "@angular/material/checkbox"; +import { TooltipPosition } from "@angular/material/tooltip"; + +@Component({ + selector: 'app-noop-checkbox', + templateUrl: 'noop-checkbox.component.html', + styleUrls: ['noop-checkbox.component.scss'], + providers: [ + { + provide: MAT_CHECKBOX_DEFAULT_OPTIONS, + useValue: { clickAction: 'noop' }, + } + ] +}) +export class NoopCheckboxComponent { + @Input() control: FormControl; + @Input() checked: boolean; + @Input() label: string; + @Input() tooltipText: string | null = null; + @Input() tooltipPosition: TooltipPosition = 'right'; +} \ No newline at end of file