Sort apps in the grid by label
This commit is contained in:
@@ -149,6 +149,11 @@ const filteredApps = computed(() => {
|
|||||||
if (stateFilter.value === 'update_available') return a.updateInfo;
|
if (stateFilter.value === 'update_available') return a.updateInfo;
|
||||||
|
|
||||||
return a.runState === RSTATES.RUNNING && (a.health !== HSTATES.HEALTHY || a.installationState !== ISTATES.INSTALLED); // not responding
|
return a.runState === RSTATES.RUNNING && (a.health !== HSTATES.HEALTHY || a.installationState !== ISTATES.INSTALLED); // not responding
|
||||||
|
}).sort((a, b) => {
|
||||||
|
const labelA = a.label || a.subdomain || a.fqdn;
|
||||||
|
const labelB = b.label || b.subdomain || b.fqdn;
|
||||||
|
|
||||||
|
return labelA.localeCompare(labelB);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user