Verified Commit 2c9d7c80 authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

Show print progress x2

parent fca43970
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@
    <v-tooltip left>
      <template v-slot:activator="{ on }">
        <v-card-text align="left" v-show="show_recup()" v-on="on">
          <v-icon color="green">mdi-fingerprint</v-icon>
          <v-icon color="grey">mdi-clock-time-four</v-icon>
          &nbsp;{{ recup_id }}
        </v-card-text>
      </template>
@@ -205,7 +205,7 @@ export default {
      if (Math.ceil(this.infos.printer_progress) <= 1) {
        return "??% - ?? h, ?? min, ?? sec"
      }
      return Math.floor(this.base_infos.progress['progress']) + "% " + this.convert_time(this.base_infos.progress["printTimeLeft"])
      return Math.floor(this.base_infos.progress['progress']) + "% - " + this.convert_time(this.base_infos.progress["printTimeLeft"])
    }
  },
  methods: {
@@ -224,6 +224,9 @@ export default {
        link.click();
      });
    },
    show_print_state() {
      return this.state == 7
    },
    toggle_object() {
      this.show_stl = !this.show_stl;
    },