mirror of
https://github.com/meshtastic/web.git
synced 2026-01-29 01:41:37 -05:00
QR code: force inclusion of primary channel
This commit is contained in:
@@ -67,7 +67,10 @@ export const QRDialog = ({
|
||||
{channels.map((channel) => (
|
||||
<Checkbox
|
||||
key={channel.index}
|
||||
disabled={channel.role === Protobuf.Channel_Role.DISABLED}
|
||||
disabled={
|
||||
channel.index === 0 ||
|
||||
channel.role === Protobuf.Channel_Role.DISABLED
|
||||
}
|
||||
label={
|
||||
channel.settings?.name.length
|
||||
? channel.settings.name
|
||||
@@ -75,7 +78,10 @@ export const QRDialog = ({
|
||||
? "Primary"
|
||||
: `Channel: ${channel.index}`
|
||||
}
|
||||
checked={selectedChannels.includes(channel.index)}
|
||||
checked={
|
||||
channel.index === 0 ||
|
||||
selectedChannels.includes(channel.index)
|
||||
}
|
||||
onChange={() => {
|
||||
if (selectedChannels.includes(channel.index)) {
|
||||
setSelectedChannels(
|
||||
|
||||
Reference in New Issue
Block a user