Verified Commit 1b1e5dfd authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

update show print

parent 50cf0ca3
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -86,8 +86,8 @@
    </v-tooltip>

    <v-tooltip left>
      <template v-slot:activator="{ on }">
        <v-card-text align="left" :v-show="show_print_state()" v-on="on">
      <template v-slot:activator="{ a }">
        <v-card-text align="left" v-show="show_print_state()" v-on="a">
          <v-icon color="grey">mdi-clock-time-four</v-icon>
          &nbsp;{{ print_state }}
        </v-card-text>
@@ -198,9 +198,6 @@ export default {
    reject_message() {
      return this.base_infos.reject_message;
    },
    convert_time(d) {
      return utils.secondsToHms(d)
    },
    print_state() {
      if (! this.base_infos.progress || Math.ceil(this.base_infos.progress['progress']) <= 1) {
        return "??% - ?? h, ?? min, ?? sec"
@@ -224,6 +221,9 @@ export default {
        link.click();
      });
    },
    convert_time(d) {
      return utils.secondsToHms(d)
    },
    show_print_state() {
      return this.status == 3 // printing
    },
+4 −2
Original line number Diff line number Diff line
@@ -130,11 +130,13 @@
      </v-stepper>
      <div>
        <p>Actions globales</p>
        <v-card>    
          <v-card-actions>
          </v-card-actions>
          <v-btn color="grey" @click="close_request">
            Cloturer
          </v-btn>
        </v-card-actions>
        </v-card>
      </div>
    </div>
</template>