added software id and version to UI search

pull/1161/merge
Justin Richer 2017-03-16 13:51:19 -04:00
parent 02928b048f
commit 626b18d5ca
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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",