join array of emails using '\n' when displaying

* Don't ASSume user email addresses don't contain ,
* Allows email addresses to contain ,
This commit is contained in:
Chris Meyers
2017-01-24 15:58:59 -05:00
parent e0ffb7814d
commit 8198abe3fa

View File

@@ -94,7 +94,7 @@ export default ['Rest', 'Wait',
if (form.fields[fld].name === 'headers') { if (form.fields[fld].name === 'headers') {
$scope[fld] = JSON.stringify($scope[fld], null, 2); $scope[fld] = JSON.stringify($scope[fld], null, 2);
} else { } else {
$scope[fld] = $scope[fld].toString().replace(/,/g, '\n'); $scope[fld] = $scope[fld].join('\n');
} }
} }
} }