refactor: alle Feature-Flags entfernt wegen Aufwand und Zeit
This commit is contained in:
@@ -39,8 +39,7 @@ export default function AnalogInputsChart({
|
||||
const selectedInput = useSelector(
|
||||
(state: RootState) => state.selectedAnalogInput
|
||||
);
|
||||
const zoomEnabled =
|
||||
process.env.NEXT_PUBLIC_FEATURE_MESSWERTANZEIGE_EINGANG === "true";
|
||||
|
||||
const dispatch = useDispatch<AppDispatch>();
|
||||
const { data } = useSelector(
|
||||
(state: RootState) => state.analogInputsHistory
|
||||
@@ -112,19 +111,17 @@ export default function AnalogInputsChart({
|
||||
display: true,
|
||||
text: `Verlauf der letzten 24 Stunden`,
|
||||
},
|
||||
...(zoomEnabled && {
|
||||
zoom: {
|
||||
pan: {
|
||||
enabled: true,
|
||||
mode: "x" as const,
|
||||
},
|
||||
zoom: {
|
||||
wheel: { enabled: true },
|
||||
pinch: { enabled: true },
|
||||
mode: "x" as const,
|
||||
},
|
||||
zoom: {
|
||||
pan: {
|
||||
enabled: true,
|
||||
mode: "x" as const,
|
||||
},
|
||||
}),
|
||||
zoom: {
|
||||
wheel: { enabled: true },
|
||||
pinch: { enabled: true },
|
||||
mode: "x" as const,
|
||||
},
|
||||
},
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
|
||||
Reference in New Issue
Block a user