mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
[ui] Fix Resource URI button not checked (#7070)
* [u] Fix Resource URI button not checked * Generate static UI --------- Co-authored-by: Armel Soro <asoro@redhat.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
<span class="toggleUriInlined">
|
||||
<mat-button-toggle-group formControlName="_choice" (change)="changeUriOrInlined($event.value)">
|
||||
<mat-button-toggle data-cy="resource-toogle-uri" value="uri" checked>Specify URI</mat-button-toggle>
|
||||
<mat-button-toggle data-cy="resource-toogle-uri" value="uri">Specify URI</mat-button-toggle>
|
||||
<mat-button-toggle data-cy="resource-toggle-inlined" value="inlined">Inlined content</mat-button-toggle>
|
||||
</mat-button-toggle-group>
|
||||
</span>
|
||||
|
||||
@@ -78,6 +78,9 @@ export class ResourceComponent {
|
||||
if (res['inlined']) {
|
||||
this.form.get('_choice')?.setValue('inlined');
|
||||
this.changeUriOrInlined('inlined');
|
||||
} else {
|
||||
this.form.get('_choice')?.setValue('uri');
|
||||
this.changeUriOrInlined('uri');
|
||||
}
|
||||
this.form.get('name')?.disable();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user