Add sso filter option in appstore view

This commit is contained in:
Johannes Zellner
2022-05-25 21:10:53 +02:00
parent 2c97c240d8
commit 3c17b65f7f
3 changed files with 42 additions and 3 deletions
+14 -1
View File
@@ -144,7 +144,7 @@ app.filter('appIsInstalledAndHealthy', function () {
};
});
app.filter('applicationLink', function() {
app.filter('applicationLink', function () {
return function(app) {
if (!app) return '';
@@ -156,6 +156,19 @@ app.filter('applicationLink', function() {
};
});
app.filter('userManagementFilter', function () {
return function(apps, option) {
return apps.filter(function (app) {
if (option.id === '') return true;
if (option.id === 'sso') return !!(app.manifest.optionalSso || app.manifest.addons.ldap || app.manifest.addons.proxyAuth);
if (option.id === 'nosso') return app.manifest.optionalSso || (!app.manifest.addons.ldap && !app.manifest.addons.proxyAuth);
if (option.id === 'email') return !!app.manifest.addons.email;
return false;
});
};
});
// this appears when an item in app grid is clicked
app.filter('prettyAppErrorMessage', function () {
return function (app) {