-
-
Notifications
You must be signed in to change notification settings - Fork 228
/
Copy pathchange-filament.component.html
39 lines (35 loc) · 1.54 KB
/
change-filament.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<ng-container *ngIf="!usingM600(); else M600Change">
<span class="filament-heading" i18n="@@load-new-filament">load new filament</span>
<span class="change-filament__info" i18n="@@load-new-filament-message">only put a little filament in, I'll pull in the rest.</span>
</ng-container>
<ng-container *ngIf="selectedSpool; else noSpoolSelected">
<div style="margin-top: 3vh">
<div class="heating__information-type">
<span
class="heating__information-type-box"
[ngStyle]="{ 'border-color': selectedSpool.color, 'box-shadow': '0 0 3vh ' + selectedSpool.color }"
>
{{ selectedSpool.material }}
</span>
</div>
<span class="change-filament__filament-name">{{ selectedSpool.displayName }}</span>
<span class="change-filament__filament-weight">
{{ getSpoolWeightLeft(selectedSpool.weight, selectedSpool.used) }}
</span>
<span i18n="@@filament-grams-left">g left</span>
</div>
</ng-container>
<div class="filament__wrapper-button">
<a class="filament__done" matRipple [matRippleUnbounded]="false" (click)="increasePage.emit()" i18n="@@filament-done">
done
</a>
</div>
<ng-template #noSpoolSelected>
<div style="margin-top: 15vh">
<span class="change-filament__filament-name" i18n="@@filament-waiting">I'll wait for you.</span>
</div>
</ng-template>
<ng-template #M600Change>
<span class="filament-heading" i18n="@@filament-m600">M600 sent</span>
<span class="change-filament__info" i18n="@@follow-printer-screen">follow the instructions on your printers' display</span>
</ng-template>