fix: sort mcus in SystemPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
d7c2dc5033
commit
aa4c269eab
@ -173,6 +173,7 @@
|
||||
import {Component, Mixins} from 'vue-property-decorator'
|
||||
import BaseMixin from '../../mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import {caseInsensitiveSort} from '@/plugins/helpers'
|
||||
@Component({
|
||||
components: {Panel}
|
||||
})
|
||||
@ -192,7 +193,9 @@ export default class SystemPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get mcus() {
|
||||
return this.$store.getters['printer/getMcus'] ?? []
|
||||
const mcus = this.$store.getters['printer/getMcus'] ?? []
|
||||
|
||||
return caseInsensitiveSort(mcus, 'name')
|
||||
}
|
||||
|
||||
get hostStats() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user