ui: Allow searching for peerings by ID (#13837)

This commit is contained in:
John Cowen 2022-07-21 17:38:57 +01:00 committed by GitHub
parent b960cb671f
commit e2908679c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@
state: 'state',
searchproperty: {
as: 'searchproperty',
empty: [['Name']],
empty: [['Name', 'ID']],
},
search: {
as: 'filter',

View File

@ -22,6 +22,7 @@ export default class Peer extends Model {
@attr('string') Name;
@attr('string') State;
@attr('string') ID;
@attr('number') ImportedServiceCount;
@attr('number') ExportedServiceCount;
@attr() PeerServerAddresses;

View File

@ -1,3 +1,4 @@
export default {
Name: item => item.Name,
ID: item => item.ID,
};