diff --git a/src/js/index.js b/src/js/index.js index 9659f42bc..7c25e5ddb 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -272,6 +272,15 @@ app.filter('selectedDomainFilter', function () { }; }); +app.filter('appSearchFilter', function () { + return function appSearchFilter(apps, appSearch) { + return apps.filter(function (app) { + if (!appSearch) return true; + return app.fqdn.indexOf(appSearch) !== -1; + }); + }; +}); + app.filter('prettyDomains', function () { return function prettyDomains(domains) { return domains.map(function (d) { return d.domain; }).join(', '); diff --git a/src/views/apps.html b/src/views/apps.html index 4fdb0ff97..169fcdddc 100644 --- a/src/views/apps.html +++ b/src/views/apps.html @@ -66,15 +66,18 @@

Your Apps
- - +
+ + + +

-