mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-20 18:34:23 +00:00
Sort SIP gateways (in edit form and table view)
This commit is contained in:
1 parent
21045249cf
commit
6e87b31880
3 files changed
+17
No files matched your search
@@ -11,6 +11,7 @@ import FormError from '../blocks/FormError';
|
||||
import Button from '../elements/Button';
|
||||
import TrashButton from '../elements/TrashButton';
|
||||
import Loader from '../blocks/Loader';
|
||||
import sortSipGateways from '../../helpers/sortSipGateways';
|
||||
|
||||
const SipTrunkForm = props => {
|
||||
const history = useHistory();
|
||||
@@ -113,6 +114,7 @@ const SipTrunkForm = props => {
|
||||
const currentSipGateways = allSipGateways.filter(s => {
|
||||
return s.voip_carrier_sid === currentSipTrunk[0].voip_carrier_sid;
|
||||
});
|
||||
sortSipGateways(currentSipGateways);
|
||||
|
||||
if (currentSipTrunk.length) {
|
||||
setName(currentSipTrunk[0].name);
|
||||
|
||||
Reference in new issue
Block a user