Browse Source

added software id and version to UI search

pull/1161/merge
Justin Richer 8 years ago
parent
commit
626b18d5ca
  1. 6
      openid-connect-server-webapp/src/main/webapp/resources/js/client.js
  2. 4
      openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json

6
openid-connect-server-webapp/src/main/webapp/resources/js/client.js

@ -157,6 +157,12 @@ var ClientModel = Backbone.Model.extend({
matches.push($.t('client.client-table.match.scope'));
}
}
if (this.get('softwareId') != null && this.get('softwareId').toLowerCase().indexOf(term.toLowerCase()) != -1) {
matches.push($.t('client.client-table.match.software-id'));
}
if (this.get('softwareVersion') != null && this.get('softwareVersion').toLowerCase().indexOf(term.toLowerCase()) != -1) {
matches.push($.t('client.client-table.match.software-version'));
}
} else {
// there's no search term, we always match

4
openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json

@ -202,7 +202,9 @@
"policy": "policy",
"redirect": "redirect uri",
"scope": "scope",
"terms": "terms of service"
"terms": "terms of service",
"software-id": "software ID",
"software-version": "version"
},
"matched-search": "Matched search:",
"new": "New Client",

Loading…
Cancel
Save