feat(ui): Hinweis-Icon und Meldung angezeigt, wenn kein Eingang ausgewählt ist
This commit is contained in:
@@ -380,7 +380,20 @@ export default function AnalogInputsChart() {
|
||||
</div>
|
||||
|
||||
<div className="h-[50vh] w-full">
|
||||
<Line ref={chartRef} data={chartData} options={chartOptions} />
|
||||
{!selectedAnalogInput?.id ? (
|
||||
<div className="flex items-center justify-center h-full text-gray-500 text-lg gap-2">
|
||||
<i
|
||||
className="bi bi-info-circle text-2xl mr-2"
|
||||
aria-hidden="true"
|
||||
></i>
|
||||
<span>
|
||||
Bitte wählen Sie einen Eingang aus von der Tabelle, um die
|
||||
Messkurve anzuzeigen
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
<Line ref={chartRef} data={chartData} options={chartOptions} />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user