Skip to content

Commit d6927c7

Browse files
committed
web: indicate to the user when a channel is enabled but not primary
1 parent d9b798b commit d6927c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web/src/TacComponents.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ type Channel = {
125125
url: string;
126126
polling_interval?: Duration;
127127
enabled: boolean;
128+
primary: boolean;
128129
bundle?: UpstreamBundle;
129130
};
130131

@@ -379,6 +380,10 @@ export function UpdateChannels(props: UpdateChannelsProps) {
379380
return "Not enabled";
380381
}
381382

383+
if (!e.primary) {
384+
return "Not primary";
385+
}
386+
382387
if (!e.bundle) {
383388
if (enable_polling) {
384389
return <Spinner />;

0 commit comments

Comments
 (0)