fix: display status tab on dashboard as default while printing (#907)

This commit is contained in:
Stefan Dej authored and GitHub committed 2022-06-15 22:26:29 +02:00
1 parent 8367f01bce
commit 911387755f
1 file changed
+4
+4
View File
@@ -239,6 +239,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
return this.$store.state.printer.print_stats?.message ?? ''
}
mounted() {
if (this.current_filename !== '') this.activeTab = 'status'
}
@Watch('current_filename')
current_filenameChanged(newVal: string) {
if (newVal === '') this.activeTab = 'files'