feat: Add cursor wait state to AnalogInputsTable rows during data loading

- Applied `cursor-wait` style to table rows (`<tr>`) in AnalogInputsTable when loading is true.
- Ensured consistent cursor behavior across the entire table and rows
This commit is contained in:
ISA
2025-07-23 13:40:43 +02:00
parent 2272668ace
commit bdbdd27963
8 changed files with 44 additions and 19 deletions

View File

@@ -42,7 +42,13 @@ ChartJS.register(
TimeScale
);
export default function AnalogInputsChart() {
export default function AnalogInputsChart({
setLoading,
loading,
}: {
setLoading: (loading: boolean) => void;
loading: boolean;
}) {
useEffect(() => {
if (typeof window !== "undefined") {
import("chartjs-plugin-zoom").then((zoom) => {
@@ -119,9 +125,6 @@ export default function AnalogInputsChart() {
setLocalBisDatum(to);
};
// Define loading state
const [loading, setLoading] = React.useState(false);
// ✅ Button → Redux + Fetch triggern
const handleFetchData = () => {
if (!selectedAnalogInput?.id) return;