fix(front-end): 3d view only for stl
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user