fix(front-end): 3d view only for stl
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 33s
Build, Test and Deploy / build-and-push (push) Successful in 21s
Build, Test and Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-02-24 13:12:29 +01:00
parent a6eae757c5
commit 4ddd33662d
3 changed files with 41 additions and 41 deletions

View File

@@ -3,7 +3,7 @@
<div class="section"> <div class="section">
@if (selectedFile()) { @if (selectedFile()) {
<div class="viewer-wrapper"> <div class="viewer-wrapper">
@if (isStepFile(selectedFile())) { @if (!isStepFile(selectedFile())) {
<div class="step-warning"> <div class="step-warning">
<p>{{ 'CALC.STEP_WARNING' | translate }}</p> <p>{{ 'CALC.STEP_WARNING' | translate }}</p>
</div> </div>

View File

@@ -66,7 +66,7 @@ export class UploadFormComponent implements OnInit {
isStepFile(file: File | null): boolean { isStepFile(file: File | null): boolean {
if (!file) return false; if (!file) return false;
const name = file.name.toLowerCase(); const name = file.name.toLowerCase();
return name.endsWith('.step') || name.endsWith('.stp'); return name.endsWith('.stl');
} }
constructor() { constructor() {

View File

@@ -102,7 +102,7 @@
"PROCESSING": "Elaborazione...", "PROCESSING": "Elaborazione...",
"NOTES_PLACEHOLDER": "Istruzioni specifiche...", "NOTES_PLACEHOLDER": "Istruzioni specifiche...",
"SETUP_NOTE": "* Include {{cost}} Costo di Setup", "SETUP_NOTE": "* Include {{cost}} Costo di Setup",
"STEP_WARNING": "La visualizzazione 3D non è compatibile con i file STEP, ma il calcolatore funziona." "STEP_WARNING": "La visualizzazione 3D non è compatibile con i file step e 3mf, ma il calcolatore funziona."
}, },
"QUOTE": { "QUOTE": {
"PROCEED_ORDER": "Procedi con l'ordine", "PROCEED_ORDER": "Procedi con l'ordine",