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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user