fix(front-end): 3d view only for stl
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="section">
|
||||
@if (selectedFile()) {
|
||||
<div class="viewer-wrapper">
|
||||
@if (isStepFile(selectedFile())) {
|
||||
@if (!isStepFile(selectedFile())) {
|
||||
<div class="step-warning">
|
||||
<p>{{ 'CALC.STEP_WARNING' | translate }}</p>
|
||||
</div>
|
||||
|
||||
@@ -66,7 +66,7 @@ export class UploadFormComponent implements OnInit {
|
||||
isStepFile(file: File | null): boolean {
|
||||
if (!file) return false;
|
||||
const name = file.name.toLowerCase();
|
||||
return name.endsWith('.step') || name.endsWith('.stp');
|
||||
return name.endsWith('.stl');
|
||||
}
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
"PROCESSING": "Elaborazione...",
|
||||
"NOTES_PLACEHOLDER": "Istruzioni specifiche...",
|
||||
"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": {
|
||||
"PROCEED_ORDER": "Procedi con l'ordine",
|
||||
|
||||
Reference in New Issue
Block a user