From c64ed7e4e1fe7dfeec793dea02ed827af056f5cd Mon Sep 17 00:00:00 2001 From: Falkvinge Date: Mon, 28 Nov 2016 19:31:01 +0100 Subject: [PATCH] Connected people list to edit function --- Site/Pages/v5/Swarm/Json-ListFindPeople.aspx.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Site/Pages/v5/Swarm/Json-ListFindPeople.aspx.cs b/Site/Pages/v5/Swarm/Json-ListFindPeople.aspx.cs index 813e114f..9d0fccce 100644 --- a/Site/Pages/v5/Swarm/Json-ListFindPeople.aspx.cs +++ b/Site/Pages/v5/Swarm/Json-ListFindPeople.aspx.cs @@ -42,6 +42,9 @@ namespace Swarmops.Frontend.Pages.Swarm List jsonPeople = new List(); + string editPersonTemplate = + "\"actions\":\"\""; + foreach (Person person in matches) { string onePerson = '{' + @@ -52,7 +55,10 @@ namespace Swarmops.Frontend.Pages.Swarm person.GetSecureAvatarLink (16), JsonSanitize (person.Geography.Name), JsonSanitize (person.Mail), - JsonSanitize (person.Phone)) + '}'; + JsonSanitize (person.Phone)) + "," + + String.Format( + editPersonTemplate, person.Identity) + + '}'; jsonPeople.Add (onePerson); }