Skip to content

Commit

Permalink
chore(Gcodefiles.vue): simplify code
Browse files Browse the repository at this point in the history
use an already declared interface as value instead of defining the full item object over again.

Signed-off-by: Dominik Willner <[email protected]>
  • Loading branch information
dw-0 committed Jun 16, 2022
1 parent d568da8 commit 4792101
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/components/panels/Status/Gcodefiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,22 +235,7 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
private dialogRenameFile: dialogRenameObject = {
show: false,
newName: '',
item: {
isDirectory: false,
filename: '',
permissions: '',
modified: new Date(),
small_thumbnail: null,
big_thumbnail: null,
big_thumbnail_width: null,
count_printed: 0,
last_filament_used: null,
last_start_time: null,
last_end_time: null,
last_print_duration: null,
last_status: null,
last_total_duration: null,
},
item: this.dialogFile,
}
get gcodeFiles() {
Expand Down

0 comments on commit 4792101

Please sign in to comment.