Jelajahi Sumber

Merge pull request #436 from cimdDev/add-H2D-Pro-png

Add H2D Pro printer image
MartinNYHC 6 bulan lalu
induk
melakukan
abc7737c85
3 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. TEMPAT SAMPAH
      frontend/public/img/printers/h2dpro.png
  2. 1 0
      frontend/src/pages/PrintersPage.tsx
  3. TEMPAT SAMPAH
      static/img/printers/h2dpro.png

TEMPAT SAMPAH
frontend/public/img/printers/h2dpro.png


+ 1 - 0
frontend/src/pages/PrintersPage.tsx

@@ -1097,6 +1097,7 @@ function getPrinterImage(model: string | null | undefined): string {
   if (modelLower.includes('x1e')) return '/img/printers/x1e.png';
   if (modelLower.includes('x1c') || modelLower.includes('x1carbon')) return '/img/printers/x1c.png';
   if (modelLower.includes('x1')) return '/img/printers/x1c.png';
+  if (modelLower.includes('h2dpro') || modelLower.includes('h2d-pro')) return '/img/printers/h2dpro.png';
   if (modelLower.includes('h2d')) return '/img/printers/h2d.png';
   if (modelLower.includes('h2c')) return '/img/printers/h2c.png';
   if (modelLower.includes('h2s')) return '/img/printers/h2d.png';

TEMPAT SAMPAH
static/img/printers/h2dpro.png