diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2016-12-01 23:23:28 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-12-01 17:23:28 -0500 |
commit | c51afba71a8d4614f74709d5e9c432c2cff3fcf7 (patch) | |
tree | 8b2ad4586123c5a7bab8c44f91dd8eebbfaea674 /api/team.go | |
parent | 8c18da21f3e51421a0dc6fbd4be1fa1e838dd482 (diff) | |
download | chat-c51afba71a8d4614f74709d5e9c432c2cff3fcf7.tar.gz chat-c51afba71a8d4614f74709d5e9c432c2cff3fcf7.tar.bz2 chat-c51afba71a8d4614f74709d5e9c432c2cff3fcf7.zip |
Add Team Description to the Team Settings (#4652)
* draft
* Add Team Description to the Team Settings
* add tooltips for team description
* made changes per PM review
* add message when there is no description set in the team
* squash
Diffstat (limited to 'api/team.go')
-rw-r--r-- | api/team.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go index 8cfb4fe77..8abb66e59 100644 --- a/api/team.go +++ b/api/team.go @@ -775,6 +775,7 @@ func updateTeam(c *Context, w http.ResponseWriter, r *http.Request) { } oldTeam.DisplayName = team.DisplayName + oldTeam.Description = team.Description oldTeam.InviteId = team.InviteId oldTeam.AllowOpenInvite = team.AllowOpenInvite oldTeam.CompanyName = team.CompanyName @@ -1010,6 +1011,7 @@ func getInviteInfo(c *Context, w http.ResponseWriter, r *http.Request) { result := map[string]string{} result["display_name"] = team.DisplayName + result["description"] = team.Description result["name"] = team.Name result["id"] = team.Id w.Write([]byte(model.MapToJson(result))) |