fix: switch back to files, after clear printjob from status panel (#816)
This commit is contained in:
parent
fccd8321bb
commit
bc841609ba
@ -57,7 +57,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</td>
|
</td>
|
||||||
<td class="pr-2">
|
<td class="pr-2">
|
||||||
<template v-if="item.isFirst">
|
<template v-if="item.isFirst && !printerIsPrinting">
|
||||||
<v-btn icon color="success" class="float-right minwidth-0 mt-1" @click="startJobqueue">
|
<v-btn icon color="success" class="float-right minwidth-0 mt-1" @click="startJobqueue">
|
||||||
<v-icon>{{ mdiPlay }}</v-icon>
|
<v-icon>{{ mdiPlay }}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
@ -122,13 +122,13 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
|||||||
mdiCloseCircle = mdiCloseCircle
|
mdiCloseCircle = mdiCloseCircle
|
||||||
|
|
||||||
private boolShowObjects = false
|
private boolShowObjects = false
|
||||||
private boolFirstLoad = true
|
|
||||||
|
|
||||||
declare $refs: {
|
declare $refs: {
|
||||||
bigThumbnail: any
|
bigThumbnail: any
|
||||||
}
|
}
|
||||||
|
|
||||||
private activeTab = 'files'
|
private activeTab = 'files'
|
||||||
|
private lastFilename = ''
|
||||||
|
|
||||||
get jobs() {
|
get jobs() {
|
||||||
return this.$store.getters['server/jobQueue/getJobs']
|
return this.$store.getters['server/jobQueue/getJobs']
|
||||||
@ -241,11 +241,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
|||||||
|
|
||||||
@Watch('current_filename')
|
@Watch('current_filename')
|
||||||
current_filenameChanged(newVal: string) {
|
current_filenameChanged(newVal: string) {
|
||||||
if (this.current_filename === '' && newVal !== '') this.activeTab = 'status'
|
if (newVal === '') this.activeTab = 'files'
|
||||||
if (this.boolFirstLoad && newVal !== '') {
|
else if (this.lastFilename !== newVal) this.activeTab = 'status'
|
||||||
this.boolFirstLoad = false
|
|
||||||
this.activeTab = 'status'
|
this.lastFilename = newVal
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clearDisplayMessage() {
|
clearDisplayMessage() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user