11<template >
22 <div >
33 <v-row no-gutters justify =" start" class =" mb-3" >
4- <v-col cols =" auto" class =" ml-13 mr-8 " >
4+ <v-col cols =" auto" class =" ml-13 mr-13 " >
55 <btn-toolhead-move
66 @click =" sendMoveGcode('Y', toolheadMoveLength)"
77 :disabled =" hasWaits || !xyHomed || !klippyConnected"
88 icon =" $up" >
99 </btn-toolhead-move >
1010 </v-col >
11- <v-col cols =" auto" class =" ml-8 " >
11+ <v-col cols =" auto" class =" ml-3 " >
1212 <btn-toolhead-move
1313 @click =" sendMoveGcode('Z', toolheadMoveLength)"
1414 :disabled =" hasWaits || !zHomed || !klippyConnected"
1717 </v-col >
1818 </v-row >
1919 <v-row no-gutters justify =" start" class =" mb-3" >
20- <v-col cols =" auto" >
20+ <v-col cols =" auto" class = " mr-13 " >
2121 <btn-toolhead-move
2222 @click =" sendMoveGcode('X', toolheadMoveLength, true)"
2323 :disabled =" hasWaits || !xyHomed || !klippyConnected"
2424 icon =" $left" >
2525 </btn-toolhead-move >
2626 </v-col >
27- <v-col cols =" auto" class =" ml-3" >
28- <btn-toolhead-move
29- @click =" sendGcode('G28 X Y', waits.onHomeXY)"
30- :loading =" hasWait(waits.onHomeXY)"
31- :disabled =" hasWaits || !klippyConnected"
32- :color =" (!xyHomed) ? 'warning' : 'secondary'"
33- icon =" $home" >
34- </btn-toolhead-move >
35- </v-col >
3627 <v-col cols =" auto" class =" ml-3" >
3728 <btn-toolhead-move
3829 @click =" sendMoveGcode('X', toolheadMoveLength)"
4132 </btn-toolhead-move >
4233 </v-col >
4334 <v-col cols =" auto" class =" ml-3" >
44- <btn-toolhead-move
35+ <v-speed-dial
36+ v-model =" fab"
37+ direction =" right"
38+ open-on-hover
39+ transition =" slide-y-reverse-transition"
40+ >
41+ <template v-slot :activator >
42+ <v-btn
43+ v-model =" fab"
44+ class =" px-0"
45+ :min-width =" 40"
46+ :loading =" hasWait([waits.onHomeAll, waits.onHomeX, waits.onHomeY, waits.onHomeZ])"
47+ :color =" (!allHomed) ? 'warning' : 'secondary'"
48+ >
49+ <v-icon v-if =" fab" >
50+ $close
51+ </v-icon >
52+ <v-icon v-else >
53+ $home
54+ </v-icon >
55+ </v-btn >
56+ </template >
57+ <v-btn
58+ :color =" (!allHomed) ? 'warning' : 'secondary'"
59+ small
60+ :elevation =" 2"
61+ :loading =" hasWait(waits.onHomeAll)"
62+ :disabled =" !klippyConnected || printerPrinting || hasWait([waits.onHomeAll, waits.onHomeX, waits.onHomeY, waits.onHomeZ])"
63+ @click =" sendGcode('G28', waits.onHomeAll)"
64+ >
65+ <v-icon small >$home</v-icon > All
66+ </v-btn >
67+ <v-btn
68+ :color =" (!allHomed) ? 'warning' : 'secondary'"
69+ small
70+ :elevation =" 2"
71+ :loading =" hasWait(waits.onHomeX)"
72+ :disabled =" !klippyConnected || printerPrinting || hasWait([waits.onHomeAll, waits.onHomeX, waits.onHomeY, waits.onHomeZ])"
73+ @click =" sendGcode('G28 X', waits.onHomeX)"
74+ >
75+ <v-icon small >$home</v-icon > X
76+ </v-btn >
77+ <v-btn
78+ :color =" (!allHomed) ? 'warning' : 'secondary'"
79+ small
80+ :elevation =" 2"
81+ :loading =" hasWait(waits.onHomeY)"
82+ :disabled =" !klippyConnected || printerPrinting || hasWait([waits.onHomeAll, waits.onHomeX, waits.onHomeY, waits.onHomeZ])"
83+ @click =" sendGcode('G28 Y', waits.onHomeY)"
84+ >
85+ <v-icon small >$home</v-icon > Y
86+ </v-btn >
87+ <v-btn
88+ :color =" (!zHomed) ? 'warning' : 'secondary'"
89+ small
90+ :elevation =" 2"
91+ :loading =" hasWait(waits.onHomeZ)"
92+ :disabled =" !klippyConnected || printerPrinting || hasWait([waits.onHomeAll, waits.onHomeX, waits.onHomeY, waits.onHomeZ])"
93+ @click =" sendGcode('G28 Z', waits.onHomeZ)"
94+ >
95+ <v-icon small >$home</v-icon > Z
96+ </v-btn >
97+ </v-speed-dial >
98+ <!-- <btn-toolhead-move
4599 @click="sendGcode('G28 Z', waits.onHomeZ)"
46100 :loading="hasWait(waits.onHomeZ)"
47101 :disabled="hasWaits || !klippyConnected"
48102 :color="(!zHomed) ? 'warning' : 'secondary'"
103+ badge="Z"
49104 icon="$home">
50- </btn-toolhead-move >
105+ </btn-toolhead-move> -->
51106 </v-col >
52107 </v-row >
53108 <v-row no-gutters justify =" start" class =" mb-3" >
@@ -93,6 +148,7 @@ import BtnToolheadMove from '@/components/inputs/BtnToolheadMove.vue'
93148export default class ToolheadMovesWidget extends Mixins (UtilsMixin ) {
94149 waits = Waits
95150 moveLength = ' '
151+ fab = false
96152
97153 get toolheadMoveLength () {
98154 return (this .moveLength === ' ' )
@@ -107,4 +163,7 @@ export default class ToolheadMovesWidget extends Mixins(UtilsMixin) {
107163 </script >
108164
109165<style type="scss" scoped>
166+ ::v-deep .v-speed-dial__list {
167+ flex-direction : column !important ;
168+ }
110169 </style >
0 commit comments