Loading ui/src/components/ImpressionRequestCard.vue +8 −4 Original line number Diff line number Diff line Loading @@ -34,7 +34,8 @@ </v-dialog> <model-stl :v-show="show_stl" class="model" :backgroundColor="stl_background" :src="this.stl_path()"></model-stl> <v-btn block v-on:click="dialog = true">Agrandir</v-btn> <v-btn @click="toggle_object">Afficher/Masquer</v-btn> <v-btn :v-show="show_stl" block v-on:click="dialog = true">Agrandir</v-btn> <v-card-title>{{ title }}</v-card-title> <v-card-subtitle class="text-left"> Date d'ajout: {{ creation }} Loading Loading @@ -207,6 +208,9 @@ export default { link.click(); }); }, toggle_object() { this.show_stl = !this.show_stl; }, download_stl() { this.download_file( this.stl_path(), Loading @@ -221,10 +225,10 @@ export default { }, infos() {}, stl_path() { return `/myfab/files/${this.stl}`; //! FIXME base url return `/myfab/files/${this.stl}`; }, gcode_path() { return `/myfab/files/${this.gcode}`; //! FIXME base url return `/myfab/files/${this.gcode}`; }, show_gcode() { return this.gcode != null && this.gcode != ""; Loading Loading @@ -252,7 +256,7 @@ export default { props: ["id", "admin"], data() { return { show_stl: true, show_stl: false, dialog: false, admin_dialog: false, stl_background: "#1e1e1e", Loading Loading
ui/src/components/ImpressionRequestCard.vue +8 −4 Original line number Diff line number Diff line Loading @@ -34,7 +34,8 @@ </v-dialog> <model-stl :v-show="show_stl" class="model" :backgroundColor="stl_background" :src="this.stl_path()"></model-stl> <v-btn block v-on:click="dialog = true">Agrandir</v-btn> <v-btn @click="toggle_object">Afficher/Masquer</v-btn> <v-btn :v-show="show_stl" block v-on:click="dialog = true">Agrandir</v-btn> <v-card-title>{{ title }}</v-card-title> <v-card-subtitle class="text-left"> Date d'ajout: {{ creation }} Loading Loading @@ -207,6 +208,9 @@ export default { link.click(); }); }, toggle_object() { this.show_stl = !this.show_stl; }, download_stl() { this.download_file( this.stl_path(), Loading @@ -221,10 +225,10 @@ export default { }, infos() {}, stl_path() { return `/myfab/files/${this.stl}`; //! FIXME base url return `/myfab/files/${this.stl}`; }, gcode_path() { return `/myfab/files/${this.gcode}`; //! FIXME base url return `/myfab/files/${this.gcode}`; }, show_gcode() { return this.gcode != null && this.gcode != ""; Loading Loading @@ -252,7 +256,7 @@ export default { props: ["id", "admin"], data() { return { show_stl: true, show_stl: false, dialog: false, admin_dialog: false, stl_background: "#1e1e1e", Loading