Skip to content

Commit

Permalink
UI: improve select channels view (#2599)
Browse files Browse the repository at this point in the history
If no component was selected, it used to be possible to select a channel. This is fixed now.
  • Loading branch information
Sn0w3y authored Jun 24, 2024
1 parent 4cdae0c commit 2d8c2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/app/edge/settings/channels/channels.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
<ion-item lines="none">
<ngx-spinner [name]="selectedComponentId.value"></ngx-spinner>
<ion-select style="white-space: initial;width: 100%;" #selectedChannelId interface="alert"
[disabled]="!selectedComponentId?.value"
[placeholder]="'CHANNELS.CHANNEL'| translate">
<ng-container *ngIf="selectedComponentId && selectedComponentId.value">
<ng-container *ngIf="selectedComponentId?.value">
<ion-select-option
*ngFor="let entry of channelsPerComponent.get(selectedComponentId.value).channels | keyvalue"
[value]="entry.key">
Expand Down

0 comments on commit 2d8c2a9

Please sign in to comment.