bugfix: Files.vue context menu "print start" -> wrong action
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
25a7e8a33b
commit
f351268745
@ -149,7 +149,7 @@
|
|||||||
</v-card>
|
</v-card>
|
||||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||||
<v-list>
|
<v-list>
|
||||||
<v-list-item @click="downloadFile" :disabled="is_printing" v-if="!contextMenu.item.isDirectory">
|
<v-list-item @click="clickRow(contextMenu.item)" :disabled="is_printing" v-if="!contextMenu.item.isDirectory">
|
||||||
<v-icon class="mr-1">mdi-play</v-icon> Print start
|
<v-icon class="mr-1">mdi-play</v-icon> Print start
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
|
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
Current Job
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,5 +1,4 @@
|
|||||||
import Dashboard from '../pages/Dashboard.vue'
|
import Dashboard from '../pages/Dashboard.vue'
|
||||||
//import Status from '../pages/Status.vue'
|
|
||||||
import Webcam from '../pages/Webcam.vue'
|
import Webcam from '../pages/Webcam.vue'
|
||||||
import Console from '../pages/Console.vue'
|
import Console from '../pages/Console.vue'
|
||||||
import Heightmap from '../pages/Heightmap.vue'
|
import Heightmap from '../pages/Heightmap.vue'
|
||||||
|
@ -126,11 +126,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
fan: state => {
|
fan: state => {
|
||||||
return Object.entries(state.object).indexOf('fan') ? state.printer.fan : false;
|
return Object.entries(state.printer).indexOf('fan') ? state.printer.fan : false;
|
||||||
},
|
},
|
||||||
|
|
||||||
is_printing: state => {
|
is_printing: state => {
|
||||||
return (state.printer.print_stats.filename !== "");
|
return (['printing', 'paused'].includes(state.printer.print_stats.state));
|
||||||
},
|
},
|
||||||
|
|
||||||
getMacros: state => {
|
getMacros: state => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user