4 Commits
Author SHA1 Message Date
LucasDLTG 579fe7a08b feat: add input meter bars 2026-10-25 15:07:32 +01:00
LucasDLTG 31eeb96008 fix: link windows height 2026-10-24 19:55:54 +02:00
LucasDLTG 48547d1b4a fix: muted color on add dsp page 2026-10-24 19:40:34 +02:00
LucasDLTG 83c2b55194 fix: remove dsp 2026-10-24 18:23:06 +02:00
13 changed files with 208 additions and 91 deletions
+7 -7
View File
@@ -21,6 +21,7 @@ function App() {
const [loaded, setLoaded] = useState(false); const [loaded, setLoaded] = useState(false);
const { notifications, notify, removeNotification, hoverNotification } = useNotifications(); const { notifications, notify, removeNotification, hoverNotification } = useNotifications();
const connectedDspCount = dsps.filter((dsp) => isConnected(dsp)).length; const connectedDspCount = dsps.filter((dsp) => isConnected(dsp)).length;
const restoreStarted = useRef(false);
const activeDsp = dsps.find((d) => d.id === selected) ?? null; const activeDsp = dsps.find((d) => d.id === selected) ?? null;
const activeInstance = activeDsp ? createDSPInstance(activeDsp, setDsps, notify) : null; const activeInstance = activeDsp ? createDSPInstance(activeDsp, setDsps, notify) : null;
@@ -33,21 +34,20 @@ function App() {
// Load saved DSPs on startup // Load saved DSPs on startup
useEffect(() => { useEffect(() => {
let cancelled = false; if (restoreStarted.current) return;
restoreStarted.current = true;
(async () => { (async () => {
try { try {
const saved = await loadSavedDSPs(); const saved = await loadSavedDSPs();
const restored = await restoreDSPs(saved, notify); const restored = await restoreDSPs(saved, notify);
if (!cancelled) setDsps(restored); setDsps(restored);
} catch (e) { } catch (e) {
notify(`Failed to load saved DSPs: ${String(e)}`, 'error'); notify(`Failed to load saved DSPs: ${String(e)}`, 'error');
} finally { } finally {
if (!cancelled) setLoaded(true); setLoaded(true);
} }
})(); })();
return () => {
cancelled = true;
};
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);
@@ -87,7 +87,7 @@ function App() {
setSelected(id); setSelected(id);
setPage('view-dsp'); setPage('view-dsp');
}} }}
onRemove={(dsp) => removeDSP(setDsps, selected, setSelected, dsp.id, dsp.type)} onRemove={(dsp) => removeDSP(setDsps, selected, setSelected, dsp.id, dsp.type, notify)}
onAddClick={() => setPage('add-dsp')} onAddClick={() => setPage('add-dsp')}
onConnect={(dsp) => createDSPInstance(dsp, setDsps, notify).api.connect()} onConnect={(dsp) => createDSPInstance(dsp, setDsps, notify).api.connect()}
onDisconnect={(dsp) => createDSPInstance(dsp, setDsps, notify).api.disconnect()} onDisconnect={(dsp) => createDSPInstance(dsp, setDsps, notify).api.disconnect()}
+5 -1
View File
@@ -3,6 +3,9 @@
position: relative; position: relative;
display: flex; display: flex;
container-type: size;
height: var(--card-control-height);
color: var(--accent-brand); color: var(--accent-brand);
} }
@@ -14,6 +17,7 @@
flex: 1 1 auto; flex: 1 1 auto;
width: 100%; width: 100%;
height: 100%; height: 100%;
min-width: 0;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -56,7 +60,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 4cqh; width: 100cqh;
aspect-ratio: 1; aspect-ratio: 1;
color: var(--accent-brand); color: var(--accent-brand);
@@ -68,7 +68,6 @@
} }
.choice-stepper__arrow-btn:disabled { .choice-stepper__arrow-btn:disabled {
opacity: 0.4;
cursor: not-allowed; cursor: not-allowed;
} }
@@ -79,7 +78,6 @@
.choice-stepper[data-disabled] { .choice-stepper[data-disabled] {
opacity: 0.45; opacity: 0.45;
filter: grayscale(1);
} }
.choice-stepper__input:disabled { .choice-stepper__input:disabled {
@@ -88,5 +86,5 @@
.choice-stepper[data-disabled] .choice-stepper__input, .choice-stepper[data-disabled] .choice-stepper__input,
.choice-stepper[data-disabled] .choice-stepper__arrow-btn { .choice-stepper[data-disabled] .choice-stepper__arrow-btn {
color: var(--border-hairline); color: var(--text-muted);
} }
+81 -56
View File
@@ -9,17 +9,30 @@ export interface Meter {
type MeterBarProps = { type MeterBarProps = {
label: string; label: string;
meter: Meter; meter: Meter;
variant: 'input' | 'output';
/** Output variant only */
min?: number; min?: number;
max?: number; max?: number;
segments?: number; segments?: number;
/** Intermediate dB values to mark on the scale, e.g. [0] or [-20, -6, 0]. */ /** Intermediate dB values to mark on the scale. Defaults depend on variant. */
ticks?: number[]; ticks?: number[];
}; };
function segmentColor(posRatioFromBottom: number) { const GREEN = '#4ade80';
if (posRatioFromBottom > 0.9) return '#f87171'; // red — near clip const HOT = '#fbbf24';
if (posRatioFromBottom > 0.7) return '#fbbf24'; // yellow — hot const RED = '#f87171';
return '#4ade80'; // green — normal const LIMIT_ORANGE = '#fb923c';
const OFF = 'rgba(255,255,255,0.08)';
function outputSegmentColor(posRatioFromBottom: number) {
if (posRatioFromBottom > 0.9) return RED; // red — near clip
if (posRatioFromBottom > 0.7) return HOT; // yellow — hot
return GREEN; // green — normal
}
// Input: green up to 0 dB, amber for the "over" steps (0-6, 6-12)
function inputSegmentColor(lowerDb: number) {
return lowerDb >= 0 ? HOT : GREEN;
} }
// Formats a dB value with an explicit '+' sign for positive values (e.g. +12, -60, 0) // Formats a dB value with an explicit '+' sign for positive values (e.g. +12, -60, 0)
@@ -29,49 +42,65 @@ function formatDb(v: number, decimals = 0) {
return v > 0 ? `+${fixed}` : fixed; return v > 0 ? `+${fixed}` : fixed;
} }
const INPUT_BOUNDS = [-60, -50, -40, -30, -20, -10, 0, 6, 12];
const INPUT_TICKS = [-50, -40, -30, -20, -10, 0, 6];
const OUTPUT_TICKS = [0, -50, -40, -30, -20, -10];
function MeterBar({ function MeterBar({
label, label,
meter, meter,
min = -60, variant = 'output',
max = +10, min: minProp,
segments = 7, max: maxProp,
ticks = [0, -50, -40, -30, -20, -10], segments: segmentsProp,
ticks: ticksProp,
}: MeterBarProps) { }: MeterBarProps) {
const { rms, peak, clip } = meter; const { rms, peak, clip } = meter;
const isInput = variant === 'input';
// Maps a raw dB value to a 0..1 ratio from the bottom of the ladder, clamped to range. const outMin = minProp ?? -60;
const ratioOf = (v: number) => { const outMax = maxProp ?? 10;
const outSegments = segmentsProp ?? 7;
const bounds: number[] = isInput
? INPUT_BOUNDS
: Array.from(
{ length: outSegments + 1 },
(_, i) => outMin + ((outMax - outMin) * i) / outSegments,
);
const min = bounds[0];
const max = bounds[bounds.length - 1];
const segments = bounds.length - 1;
const ticks = ticksProp ?? (isInput ? INPUT_TICKS : OUTPUT_TICKS);
// Maps a dB value to a position in rows from the bottom (0..segments)
const posOf = (v: number) => {
const clamped = Math.min(max, Math.max(min, v)); const clamped = Math.min(max, Math.max(min, v));
return (clamped - min) / (max - min); for (let i = 0; i < segments; i++) {
if (clamped <= bounds[i + 1]) {
return i + (clamped - bounds[i]) / (bounds[i + 1] - bounds[i]);
}
}
return segments;
}; };
// --- RMS ladder (drives which LEDs are lit) --- const litCount = Math.round(posOf(rms));
const rmsRatio = ratioOf(rms);
const litCount = Math.round(rmsRatio * segments);
// --- Peak marker (position only, doesn't affect lit count) ---
const peakRatio = ratioOf(peak);
// --- Intermediate tick marks on the scale, e.g. a 0 dB reference line ---
const visibleTicks = ticks.filter((t) => t > min && t < max); const visibleTicks = ticks.filter((t) => t > min && t < max);
// --- Red "over" LED: lit whenever rms or peak crosses max --- // Red "clip" LED: lit whenever rms or peak crosses max
const isOverMax = rms >= max || peak >= max; const isOverMax = rms >= max || peak >= max;
// --- Orange "limit" LED: lit strictly from the meter's own clip flag. // Orange "limit" LED: output only
// clip is optional — some meters simply don't report a limiter/clip state. const showLimitRow = !isInput;
const hasLimiter = clip !== undefined; const hasLimiter = clip !== undefined;
const isClipping = clip === true; const isClipping = clip === true;
// The over-led and limit-led are rendered as two extra rows in the very const totalRows = segments + (showLimitRow ? 2 : 1);
// same flex column as the level segments (see meter-bar__leds below), so
// they get identical row height automatically instead of a hardcoded one.
// Because of that, the ladder itself only occupies `segments / totalRows`
// of the column — the rest of the math (peak marker, scale ticks) has to
// scale down to match.
const totalRows = segments + 2;
const ladderFraction = segments / totalRows; const ladderFraction = segments / totalRows;
const toColumnPercent = (ratio: number) => ratio * ladderFraction * 100; const toColumnPercent = (pos: number) => (pos / segments) * ladderFraction * 100;
// const peakBottomPercent = toColumnPercent(posOf(peak));
return ( return (
<div className="meter-bar"> <div className="meter-bar">
@@ -80,54 +109,50 @@ function MeterBar({
<div className="meter-bar__body"> <div className="meter-bar__body">
<div className="meter-bar__leds-wrap"> <div className="meter-bar__leds-wrap">
<div className="meter-bar__leds"> <div className="meter-bar__leds">
<div {showLimitRow && (
className="meter-bar__indicator-row"
style={{ visibility: hasLimiter ? 'visible' : 'hidden' }}
>
<div <div
className="meter-bar__led meter-bar__led--indicator" className="meter-bar__indicator-row"
style={{ style={{ visibility: hasLimiter ? 'visible' : 'hidden' }}
backgroundColor: isClipping ? '#fb923c' : 'rgba(255,255,255,0.08)', >
}} <div
title="Limit" className="meter-bar__led meter-bar__led--indicator"
/> style={{ backgroundColor: isClipping ? LIMIT_ORANGE : OFF }}
<span>Limit</span> title="Limit"
</div> />
<span>Limit</span>
</div>
)}
<div className="meter-bar__indicator-row"> <div className="meter-bar__indicator-row">
<div <div
className="meter-bar__led meter-bar__led--indicator" className="meter-bar__led meter-bar__led--indicator"
style={{ style={{ backgroundColor: isOverMax ? RED : OFF }}
backgroundColor: isOverMax ? '#f87171' : 'rgba(255,255,255,0.08)',
}}
title="Clip" title="Clip"
/> />
<span>Clip</span> <span>Clip</span>
</div> </div>
{Array.from({ length: segments }).map((_, i) => { {Array.from({ length: segments }).map((_, i) => {
// i=0 renders at the top; convert to "position from bottom" for lighting + color
const posFromBottom = segments - 1 - i; const posFromBottom = segments - 1 - i;
const lit = posFromBottom < litCount; const lit = posFromBottom < litCount;
const color = isInput
? inputSegmentColor(bounds[posFromBottom])
: outputSegmentColor(posFromBottom / segments);
return ( return (
<div <div
key={i} key={i}
className="meter-bar__led" className="meter-bar__led"
style={{ style={{ backgroundColor: lit ? color : OFF }}
backgroundColor: lit
? segmentColor(posFromBottom / segments)
: 'rgba(255,255,255,0.08)',
}}
/> />
); );
})} })}
</div> </div>
<div {/* <div
className="meter-bar__peak-marker" className="meter-bar__peak-marker"
style={{ bottom: `${toColumnPercent(peakRatio)}%` }} style={{ bottom: `${peakBottomPercent}%` }}
title={`Peak: ${formatDb(peak, 1)} dB`} title={`Peak: ${formatDb(peak, 1)} dB`}
/> /> */}
</div> </div>
<div className="meter-bar__scale"> <div className="meter-bar__scale">
@@ -141,7 +166,7 @@ function MeterBar({
<span <span
key={t} key={t}
className="meter-bar__scale-tick" className="meter-bar__scale-tick"
style={{ bottom: `${toColumnPercent(ratioOf(t))}%` }} style={{ bottom: `${toColumnPercent(posOf(t))}%` }}
> >
{formatDb(t)} {formatDb(t)}
</span> </span>
+14 -2
View File
@@ -1,5 +1,6 @@
import { DSP, DSPTypes } from '../types'; import { DSP, DSPTypes } from '../types';
import { stopPollingFor } from './pollRegistry'; import { stopPollingFor } from './pollRegistry';
import { invoke } from '@tauri-apps/api/core';
export type SetDsps = React.Dispatch<React.SetStateAction<DSP[]>>; export type SetDsps = React.Dispatch<React.SetStateAction<DSP[]>>;
export type NotifyFn = (message: string, type: 'success' | 'error', dspName?: string) => void; export type NotifyFn = (message: string, type: 'success' | 'error', dspName?: string) => void;
@@ -12,14 +13,25 @@ export function setPollingPaused(setDsps: SetDsps, id: number, paused: boolean)
updateDSP(setDsps, id, (d) => ({ ...d, pollingPaused: paused })); updateDSP(setDsps, id, (d) => ({ ...d, pollingPaused: paused }));
} }
export function removeDSP( export async function removeDSP(
setDsps: SetDsps, setDsps: SetDsps,
selected: number | null, selected: number | null,
setSelected: React.Dispatch<React.SetStateAction<number | null>>, setSelected: React.Dispatch<React.SetStateAction<number | null>>,
id: number, id: number,
type: DSPTypes type: DSPTypes,
notify: NotifyFn
) { ) {
stopPollingFor(type, id); stopPollingFor(type, id);
// Remove from the UI first so the user isn't blocked by a slow disconnect
setDsps((prev) => prev.filter((d) => d.id !== id)); setDsps((prev) => prev.filter((d) => d.id !== id));
if (selected === id) setSelected(null); if (selected === id) setSelected(null);
if (type === 'DSP408') {
try {
await invoke('remove_dsp408', { id });
} catch (err) {
notify(`Failed to release DSP: ${String(err)}`, 'error');
}
}
} }
@@ -191,6 +191,7 @@ function CompressorSection({ dsp, set_compressor }: { dsp: DSP; set_compressor:
key={output} key={output}
label={outputState.name} label={outputState.name}
meter={dsp.output_meters.meters[output]} meter={dsp.output_meters.meters[output]}
variant='output'
/> />
); );
})} })}
@@ -135,6 +135,7 @@ function GateSection({ dsp, set_gate }: { dsp: DSP; set_gate: SetGateFn }) {
key={input} key={input}
label={inputState.name} label={inputState.name}
meter={dsp.input_meters.meters[input]} meter={dsp.input_meters.meters[input]}
variant='input'
/> />
); );
})} })}
@@ -135,6 +135,7 @@ function LimiterSection({ dsp, set_limiter }: { dsp: DSP; set_limiter: SetLimite
key={output} key={output}
label={outputState.name} label={outputState.name}
meter={dsp.output_meters.meters[output]} meter={dsp.output_meters.meters[output]}
variant='output'
/> />
); );
})} })}
@@ -6,7 +6,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: var(--space-5); padding: var(--space-4);
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
animation: copy-channel-fade-in var(--dur-base) var(--ease-standard); animation: copy-channel-fade-in var(--dur-base) var(--ease-standard);
@@ -27,6 +27,9 @@
max-height: 90vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
user-select: none;
-webkit-user-select: none;
animation: copy-channel-scale-in var(--dur-base) var(--ease-standard); animation: copy-channel-scale-in var(--dur-base) var(--ease-standard);
} }
@@ -41,12 +44,15 @@
} }
} }
/* Header (matches miscellaneous section header) */
.copy-channel-modal__header { .copy-channel-modal__header {
margin-bottom: var(--space-5); margin-bottom: var(--space-3);
} }
.copy-channel-modal__header h2 { .copy-channel-modal__header h2 {
margin: 0; margin: 0;
font-size: var(--font-md); font-size: var(--font-md);
font-weight: var(--font-weight-semibold); font-weight: var(--font-weight-semibold);
color: var(--text-primary); color: var(--text-primary);
@@ -54,6 +60,7 @@
.copy-channel-modal__header p { .copy-channel-modal__header p {
margin: var(--space-1) 0 0; margin: var(--space-1) 0 0;
font-size: var(--font-sm); font-size: var(--font-sm);
line-height: 1.4; line-height: 1.4;
color: var(--text-muted); color: var(--text-muted);
@@ -67,13 +74,17 @@
gap: var(--space-3); gap: var(--space-3);
} }
/* Field (matches miscellaneous field) */
.copy-channel-modal__field { .copy-channel-modal__field {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: var(--space-2); gap: 0;
flex: 1; flex: 1;
min-width: 0; min-width: 0;
font-family: var(--font-mono);
} }
.copy-channel-modal__field label { .copy-channel-modal__field label {
@@ -81,6 +92,16 @@
color: var(--text-muted); color: var(--text-muted);
} }
/* Fixed control height (matches miscellaneous choice select) */
.copy-channel-modal__choice-select {
height: var(--card-control-height);
min-height: var(--card-control-height);
max-height: var(--card-control-height);
box-sizing: border-box;
flex-shrink: 0;
}
.copy-channel-modal__arrow { .copy-channel-modal__arrow {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -98,21 +119,26 @@
} }
.copy-channel-modal__summary { .copy-channel-modal__summary {
margin: var(--space-3) 0 var(--space-5); margin: var(--space-3) 0 0;
font-size: var(--font-sm); font-size: var(--font-sm);
line-height: 1.4; line-height: 1.4;
color: var(--text-muted); color: var(--text-muted);
} }
/* Footer actions */ /* Footer actions (matches miscellaneous actions) */
.copy-channel-modal__actions { .copy-channel-modal__actions {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center;
gap: var(--space-3); gap: var(--space-3);
margin-top: var(--space-2);
} }
/* Mobile */
@media (max-width: 600px) { @media (max-width: 600px) {
.copy-channel-modal__transfer { .copy-channel-modal__transfer {
flex-direction: column; flex-direction: column;
@@ -120,7 +146,11 @@
} }
.copy-channel-modal__arrow { .copy-channel-modal__arrow {
height: auto;
transform: rotate(90deg); transform: rotate(90deg);
} }
.copy-channel-modal__actions {
justify-content: flex-start;
flex-wrap: wrap;
}
} }
@@ -94,9 +94,11 @@ function CopyChannelModal({
<ChoiceSelect<string> <ChoiceSelect<string>
id="copy-channel-source" id="copy-channel-source"
className="copy-channel-modal__choice-select"
value={source} value={source}
options={ALL_CHANNELS} options={ALL_CHANNELS}
onChange={handleSourceChange} onChange={handleSourceChange}
style={{ color: 'var(--font-primary)' }}
/> />
</div> </div>
@@ -111,9 +113,11 @@ function CopyChannelModal({
<ChoiceSelect<string> <ChoiceSelect<string>
id="copy-channel-destination" id="copy-channel-destination"
className="copy-channel-modal__choice-select"
value={destination} value={destination}
options={destinationOptions} options={destinationOptions}
onChange={setDestination} onChange={setDestination}
style={{ color: 'var(--font-primary)' }}
/> />
</div> </div>
</div> </div>
@@ -6,11 +6,9 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: var(--space-4);
padding: var(--space-5);
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
animation: link-channels-fade-in var(--dur-base) var(--ease-standard); animation: link-channels-fade-in var(--dur-base) var(--ease-standard);
} }
@@ -27,9 +25,11 @@
width: 100%; width: 100%;
max-width: 480px; max-width: 480px;
max-height: 90vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
user-select: none;
-webkit-user-select: none;
animation: link-channels-scale-in var(--dur-base) var(--ease-standard); animation: link-channels-scale-in var(--dur-base) var(--ease-standard);
} }
@@ -44,8 +44,10 @@
} }
} }
/* Header (matches miscellaneous section header) */
.link-channels-modal__header { .link-channels-modal__header {
margin-bottom: var(--space-4); margin-bottom: var(--space-3);
} }
.link-channels-modal__header h2 { .link-channels-modal__header h2 {
@@ -64,13 +66,20 @@
color: var(--text-muted); color: var(--text-muted);
} }
/* Mode toggle */ /* Mode toggle (fixed control height, matches miscellaneous controls) */
.link-channels-modal__mode-toggle { .link-channels-modal__mode-toggle {
display: inline-flex; display: inline-flex;
align-items: stretch;
height: var(--card-control-height);
min-height: var(--card-control-height);
max-height: var(--card-control-height);
box-sizing: border-box;
flex-shrink: 0;
padding: var(--space-1); padding: var(--space-1);
margin-bottom: var(--space-5); margin-bottom: var(--space-3);
background: var(--bg-panel); background: var(--bg-panel);
border: var(--border-width) solid var(--border-hairline); border: var(--border-width) solid var(--border-hairline);
@@ -78,7 +87,11 @@
} }
.link-channels-modal__mode-btn { .link-channels-modal__mode-btn {
padding: var(--space-2) var(--space-4); display: flex;
align-items: center;
justify-content: center;
padding: 0 var(--space-4);
background: transparent; background: transparent;
color: var(--text-muted); color: var(--text-muted);
@@ -86,7 +99,7 @@
border: none; border: none;
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
font-family: var(--font-ui); font-family: var(--font-mono);
font-size: var(--font-sm); font-size: var(--font-sm);
font-weight: var(--font-weight-semibold); font-weight: var(--font-weight-semibold);
@@ -108,7 +121,7 @@
display: grid; display: grid;
gap: var(--space-1); gap: var(--space-1);
margin-bottom: var(--space-5); margin-bottom: 0;
} }
.link-matrix__corner { .link-matrix__corner {
@@ -137,7 +150,10 @@
.link-matrix__cell { .link-matrix__cell {
aspect-ratio: 1 / 1; aspect-ratio: 1 / 1;
min-width: 32px; width: 24px;
height: 24px;
min-width: 0;
justify-self: center;
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
} }
@@ -196,16 +212,26 @@
border-color: var(--border-hairline); border-color: var(--border-hairline);
} }
/* Footer actions */ /* Footer actions (matches miscellaneous actions) */
.link-channels-modal__actions { .link-channels-modal__actions {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center;
gap: var(--space-3); gap: var(--space-3);
margin-top: var(--space-2);
} }
/* Mobile */
@media (max-width: 600px) { @media (max-width: 600px) {
.link-matrix__cell { .link-matrix__cell {
min-width: 26px; min-width: 26px;
} }
.link-channels-modal__actions {
justify-content: flex-start;
flex-wrap: wrap;
}
} }
+12
View File
@@ -178,3 +178,15 @@
user-select: text; user-select: text;
-webkit-user-select: text; -webkit-user-select: text;
} }
.add-dsp-form__field[data-disabled] {
opacity: 0.45;
}
.add-dsp-form__field[data-disabled] .choice-stepper__input {
color: var(--border-hairline);
}
.choice-stepper__input:disabled {
cursor: not-allowed;
}
+4 -1
View File
@@ -130,7 +130,10 @@ function AddDSPForm({
</div> </div>
<div className="add-dsp-form__row"> <div className="add-dsp-form__row">
<div className="add-dsp-form__field"> <div
className="add-dsp-form__field"
data-disabled={form.demo ? '' : undefined}
>
<label htmlFor="f-ip">IP address</label> <label htmlFor="f-ip">IP address</label>
<input <input