-<mat-form-field appearance="fill">
- <mat-select id="ricSelector" formControlName="ricSelector" matInput required
- placeholder="Target" matTooltip="Element where the policy instance resides, e.g. a gNodeB or Near-RT RIC">
- <mat-option *ngFor="let ric of this.allRics" [value]="ric">
- {{ric}}
- </mat-option>
- </mat-select>
- <div *ngIf="ricSelector.invalid && (ricSelector.dirty || ricSelector.touched)" class="alert mat-error"
- style="width: 300px;">
- <div id="ricSelectorError" *ngIf="ricSelector.errors.required">
- <mat-error role="alert">
- This field is required.
- </mat-error>
- </div>
-</div>
-</mat-form-field>
\ No newline at end of file
+<!--
+ -
+ ========================LICENSE_START=================================
+ O-RAN-SC
+ %%
+ Copyright (C) 2021: Nordix Foundation
+ %%
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ========================LICENSE_END===================================
+ /
+-->
+<form [formGroup]="instanceForm">
+ <mat-form-field appearance="fill">
+ <mat-select id="ricSelector" formControlName="ricSelector" (selectionChange)="onRicChanged($event)" matInput
+ required placeholder="Target *"
+ matTooltip="Element where the policy instance resides, e.g. a gNodeB or Near-RT RIC">
+ <mat-option *ngFor="let ric of this.allRics" [value]="ric">
+ {{ric}}
+ </mat-option>
+ </mat-select>
+ <div *ngIf="ricSelector.invalid" class="alert mat-error" style="width: 300px;">
+ <div id="ricSelectorError" *ngIf="ricSelector.errors.required">
+ <mat-error role="alert">
+ This field is required.
+ </mat-error>
+ </div>
+ </div>
+ </mat-form-field>
+</form>
\ No newline at end of file