-
Notifications
You must be signed in to change notification settings - Fork 18
Add a "Remove all space roles" button #1164
Conversation
rememberlenny
commented
Jul 24, 2017
static_src/constants.js
Outdated
@@ -270,6 +270,10 @@ const userActionTypes = keymirror({ | |||
USER_INVITE_ERROR: null, | |||
// Action to dismiss an user list notification. | |||
USER_LIST_NOTICE_DISMISSED: null, | |||
// Action to remove all roles for space user. | |||
USER_REMOVE_ALL_SPACE_ROLES: null, | |||
// Action to removed all roles for space user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Action when all roles removed from space user
@@ -164,6 +164,13 @@ export class UserStore extends BaseStore { | |||
break; | |||
} | |||
|
|||
case userActionTypes.USER_REMOVED_ALL_SPACE_ROLES: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only need one more test. that it changes the list of users upon removing the person.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's similar tests for the store for the add or delete cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice PR! just two minor changes
cf7a328
to
ff7fe55
Compare
static_src/constants.js
Outdated
@@ -270,6 +270,10 @@ const userActionTypes = keymirror({ | |||
USER_INVITE_ERROR: null, | |||
// Action to dismiss an user list notification. | |||
USER_LIST_NOTICE_DISMISSED: null, | |||
// Action when all roles for space user are removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops i think i told you to put that comment on the wrong constant. i meant the one below should be the Action when all
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this first one should be Action to...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!