add null mat option where it needs
This commit is contained in:
parent
f3e439094b
commit
94a23c0ee0
|
@ -54,6 +54,7 @@
|
|||
<mat-label>{{'ANNOTATION-SERVICE.STATUS-EDITOR.FIELDS.INTERNAL-STATUS' | translate}}</mat-label>
|
||||
<mat-select [formControl]="formGroup.get('internalStatus')">
|
||||
<mat-option *ngFor="let internalStatus of internalStatusEnum" [value]="internalStatus">{{enumUtils.toInternalStatusString(internalStatus)}}</mat-option>
|
||||
<mat-option [value]="null">{{'ANNOTATION-SERVICE.STATUS-EDITOR.DEFAULT-VALUE.NONE' | translate}}</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="formGroup.get('internalStatus').hasError('backendError')">{{formGroup.get('internalStatus').getError('backendError').message}}</mat-error>
|
||||
<mat-error *ngIf="formGroup.get('internalStatus').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<mat-label>{{'DESCRIPTION-STATUS-EDITOR.FIELDS.INTERNAL-STATUS' | translate}}</mat-label>
|
||||
<mat-select [formControl]="formGroup.controls.internalStatus">
|
||||
<mat-option *ngFor="let internalStatus of internalStatusEnum" [value]="internalStatus">{{enumUtils.toDescriptionStatusString(internalStatus)}}</mat-option>
|
||||
<mat-option [value]="null">{{'DESCRIPTION-STATUS-EDITOR.DEFAULT-VALUE.NONE' | translate}}</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="formGroup.controls.internalStatus.hasError('backendError')">{{formGroup.controls.internalStatus.getError('backendError').message}}</mat-error>
|
||||
</mat-form-field>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
class="status-chip"
|
||||
[class.status-chip-finalized]="row.internalStatus === DescriptionStatusEnum.Finalized"
|
||||
[class.status-chip-draft]="row.internalStatus === DescriptionStatusEnum.Draft"
|
||||
[class.status-chip-cancelled]="row.internalStatus === DescriptionStatusEnum.Canceled"
|
||||
[class.status-chip-error]="row.internalStatus === DescriptionStatusEnum.Canceled"
|
||||
>
|
||||
{{enumUtils.toDescriptionStatusString(row.internalStatus)}}
|
||||
</div>
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<mat-label>{{'PLAN-STATUS-EDITOR.FIELDS.INTERNAL-STATUS' | translate}}</mat-label>
|
||||
<mat-select [formControl]="formGroup.controls.internalStatus">
|
||||
<mat-option *ngFor="let internalStatus of internalStatusEnum" [value]="internalStatus">{{enumUtils.toPlanStatusString(internalStatus)}}</mat-option>
|
||||
<mat-option [value]="null">{{'PLAN-STATUS-EDITOR.DEFAULT-VALUE.NONE' | translate}}</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="formGroup.controls.internalStatus.hasError('backendError')">{{formGroup.controls.internalStatus.getError('backendError').message}}</mat-error>
|
||||
</mat-form-field>
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -916,6 +916,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -963,6 +966,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"DESCRIPTION-OVERVIEW": {
|
||||
|
@ -1468,6 +1474,9 @@
|
|||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
|
@ -917,6 +917,9 @@
|
|||
"ALLOW-ANONYMOUS": "Allow anonymous users",
|
||||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
}
|
||||
},
|
||||
"PLAN-STATUS-LISTING": {
|
||||
|
@ -942,8 +945,8 @@
|
|||
},
|
||||
"PLAN-STATUS-EDITOR": {
|
||||
"TITLE": {
|
||||
"NEW": "New Plan Blueprint",
|
||||
"EDIT": "Edit Plan Blueprint"
|
||||
"NEW": "New Plan Status",
|
||||
"EDIT": "Edit Plan Status"
|
||||
},
|
||||
"FIELDS": {
|
||||
"NAME": "Name",
|
||||
|
@ -957,6 +960,9 @@
|
|||
"ROLES": "User roles",
|
||||
"PLAN-ROLES": "User plan roles"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel",
|
||||
|
@ -1466,7 +1472,10 @@
|
|||
"TITLE-EDIT-ANNOTATION-STATUS": "Editing Annotation Status",
|
||||
"FIELDS": {
|
||||
"LABEL": "Label",
|
||||
"INTERNAL-STATUS": "Internal Status"
|
||||
"INTERNAL-STATUS":"Internal Status"
|
||||
},
|
||||
"DEFAULT-VALUE": {
|
||||
"NONE": "None"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"SAVE": "Save",
|
||||
|
|
Loading…
Reference in New Issue