added software id and version to UI search
parent
02928b048f
commit
626b18d5ca
|
@ -157,6 +157,12 @@ var ClientModel = Backbone.Model.extend({
|
||||||
matches.push($.t('client.client-table.match.scope'));
|
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 {
|
} else {
|
||||||
// there's no search term, we always match
|
// there's no search term, we always match
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,9 @@
|
||||||
"policy": "policy",
|
"policy": "policy",
|
||||||
"redirect": "redirect uri",
|
"redirect": "redirect uri",
|
||||||
"scope": "scope",
|
"scope": "scope",
|
||||||
"terms": "terms of service"
|
"terms": "terms of service",
|
||||||
|
"software-id": "software ID",
|
||||||
|
"software-version": "version"
|
||||||
},
|
},
|
||||||
"matched-search": "Matched search:",
|
"matched-search": "Matched search:",
|
||||||
"new": "New Client",
|
"new": "New Client",
|
||||||
|
|
Loading…
Reference in New Issue