0.11.0-1 queue fix
This commit is contained in:
@@ -2266,18 +2266,26 @@ export default function DashboardPage({
|
||||
: driveState === 'ERROR' || driveState === 'CANCELLED' ? 'danger'
|
||||
: ['CD_RIPPING', 'CD_ENCODING'].includes(driveState) ? 'warning'
|
||||
: 'info';
|
||||
const driveProgress = Number(drive?.progress ?? 0);
|
||||
const driveStatusText = drive?.statusText || null;
|
||||
const isActiveRip = ['CD_RIPPING', 'CD_ENCODING', 'CD_ANALYZING'].includes(driveState);
|
||||
return (
|
||||
<div key={drivePath} className="cd-drive-item">
|
||||
<div className="cd-drive-header">
|
||||
<strong>{driveDevice.model || 'CD-Laufwerk'}</strong>
|
||||
<code className="cd-drive-path">{drivePath}</code>
|
||||
<Tag value={driveState} severity={cdStateSeverity} />
|
||||
</div>
|
||||
{driveDevice.discLabel && (
|
||||
{(driveDevice.discLabel || driveDevice.model) && (
|
||||
<div className="cd-drive-disc-label">
|
||||
<strong>Disc:</strong> {driveDevice.discLabel}
|
||||
{driveDevice.discLabel || driveDevice.model}
|
||||
</div>
|
||||
)}
|
||||
{isActiveRip && (
|
||||
<ProgressBar value={driveProgress} style={{ height: '6px', margin: '0.2rem 0' }} showValue={false} />
|
||||
)}
|
||||
{isActiveRip && driveStatusText && (
|
||||
<div className="cd-drive-status-text">{driveStatusText}</div>
|
||||
)}
|
||||
<div className="cd-drive-actions">
|
||||
{driveState === 'DISC_DETECTED' && (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user