dashboard: Sort app grid items by label || fqdn

This commit is contained in:
Johannes Zellner
2024-02-23 18:11:06 +01:00
parent 1026728ab7
commit 7a0b74d79b
2 changed files with 6 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ angular.module('Application').controller('AppsController', ['$scope', '$translat
if (tr['app.states.updateAvailable']) $scope.states[3].label = tr['app.states.updateAvailable'];
});
// for sorting of the app grid items
$scope.labelOrFQDN = function (item) {
return item.label || item.fqdn;
};
$scope.$watch('selectedTags', function (newVal, oldVal) {
if (newVal === oldVal) return;