mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
add search with msisdn (#2495)
* add search with msisdn * add 2nd msisdn
This commit is contained in:
parent
f22fbb45da
commit
782e2accc7
1 changed files with 8 additions and 1 deletions
|
|
@ -36,8 +36,15 @@ const propTypes = {
|
|||
}
|
||||
|
||||
const List = ({ subscribers, deletedImsi, onView, onEdit, onDelete, search }) => {
|
||||
function pred(s){
|
||||
if ((s.msisdn && s.msisdn[0] && s.msisdn[0].indexOf(search) !== -1) ||
|
||||
(s.msisdn && s.msisdn[1] && s.msisdn[1].indexOf(search) !== -1) ||
|
||||
(s.imsi.indexOf(search) !== -1)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
const subscriberList = subscribers
|
||||
.filter(s => s.imsi.indexOf(search) !== -1)
|
||||
.filter(pred)
|
||||
.sort(
|
||||
(a,b) => {
|
||||
if(a.imsi > b.imsi) return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue