From a33bb27f10cbbc0aa9bb86b1d9709e51851353b7 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Wed, 14 Sep 2016 16:04:03 +0000 Subject: [PATCH] Allow teams to be added to the permission list for private stories This commit adds a way to add teams to the permission list for private stories. This makes it easy to use for stories that should only be visible to a given set of people; the members of that set can now be managed by the teams UI rather than on a per-story basis. Change-Id: I7d3adde5d6cf9b4d5b7e63df06d2266f7b824666 Depends-On: I16a7451e8c24da352357abb0590d0ace5b4e77f4 --- src/app/admin/template/team_edit.html | 1 + src/app/admin/template/team_new.html | 1 + .../controller/story_detail_controller.js | 67 +++++++--- .../controller/story_modal_controller.js | 70 ++++++++--- src/app/stories/template/detail.html | 39 ++++-- src/app/stories/template/new.html | 117 +++++++++++------- 6 files changed, 203 insertions(+), 92 deletions(-) diff --git a/src/app/admin/template/team_edit.html b/src/app/admin/template/team_edit.html index 8eb2917a..b03da965 100644 --- a/src/app/admin/template/team_edit.html +++ b/src/app/admin/template/team_edit.html @@ -123,6 +123,7 @@
-
- + + + + @@ -220,15 +232,16 @@ @@ -275,6 +288,14 @@ + + + + +
Users that can see this storyTeams and Users that can see this story - Add User + Add Team or User
+ + {{ team.name }} + + × + +
+ {{user.full_name}} + ng-show="story.users.length > 1 || story.teams.length > 0"> ×