File tree Expand file tree Collapse file tree
webui/src/components/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import { computed , onUnmounted , type Ref } from ' vue'
33import { usePrettyDates } from ' @/composables/usePrettyDate'
44import { useRouter } from ' @/router'
5- import { useRoute } from ' vue-router'
65import { getRouteName , useDashboard } from ' @/composables/dashboard'
76
87const { format } = usePrettyDates ()
@@ -25,10 +24,14 @@ if (props.configs === undefined) {
2524}
2625
2726const configs = computed (() => {
28- if (! props .configs ) {
29- return data ?. value ?? []
27+ if (props .configs ) {
28+ return props . configs . sort ( compareConfig )
3029 }
31- return props .configs .sort (compareConfig )
30+ if (data && data .value ) {
31+ console .log (' sort' )
32+ return data .value .sort (compareConfig )
33+ }
34+ return [];
3235})
3336
3437const title = computed (() => props .title ? props .title : " Configs" )
You can’t perform that action at this time.
0 commit comments