Skip to content

Commit 9f5d256

Browse files
committed
web: indicate to the user when a channel is enabled but not primary
The channel list in the web interface now contains a "Upgrade" column with one of the following: - "Not enabled" for channels which are not enabled, which means bundles from it can not be installed for it. - "Not primary" (this one is new) for channels which are enabled, but are not the primary one and are thus not polled by the native RAUC polling feature. - "Polling disabled" if the polling feature is not enabled. - A spinner if we do not know the status yet. - "Up to date" if the TAC is in sync with this update channel. - "Upgrade" (a button) if an update is available. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent cb89591 commit 9f5d256

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)