Skip to content

Commit

Permalink
feat: add sort to spool dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Oct 6, 2023
1 parent fd715ce commit fff13b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/dialogs/SpoolmanChangeSpoolDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
:headers="headers"
:items="spools"
item-key="id"
class="elevation-1"
:search="search"
:custom-filter="customFilter"
:disable-sort="true">
sort-by="last_used"
:sort-desc="true"
:custom-filter="customFilter">
<template #no-data>
<div class="text-center">{{ $t('Panels.SpoolmanPanel.NoSpools') }}</div>
</template>
Expand Down Expand Up @@ -92,22 +92,28 @@ export default class SpoolmanChangeSpoolDialog extends Mixins(BaseMixin) {
{
text: ' ',
align: 'start',
sortable: false,
},
{
text: this.$t('Panels.SpoolmanPanel.Filament'),
align: 'start',
value: 'filament.name',
sortable: false,
},
{
text: this.$t('Panels.SpoolmanPanel.Material'),
align: 'center',
value: 'filament.material',
},
{
text: this.$t('Panels.SpoolmanPanel.LastUsed'),
align: 'end',
value: 'last_used',
},
{
text: this.$t('Panels.SpoolmanPanel.Weight'),
align: 'end',
value: 'remaining_weight',
},
]
}
Expand Down

0 comments on commit fff13b8

Please sign in to comment.