Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Add a "Remove all space roles" button #1164

Merged
merged 9 commits into from
Jul 25, 2017

Conversation

rememberlenny
Copy link
Contributor

remove

@rememberlenny rememberlenny requested a review from jcscottiii July 24, 2017 21:46
@@ -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.
Copy link
Contributor

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: {
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

@jcscottiii jcscottiii left a 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

@rememberlenny rememberlenny force-pushed the lkb-add-remove-space-on-user branch from cf7a328 to ff7fe55 Compare July 25, 2017 14:24
@@ -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.
Copy link
Contributor

@jcscottiii jcscottiii Jul 25, 2017

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...

Copy link
Contributor

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...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@rememberlenny rememberlenny merged commit e58edf4 into master Jul 25, 2017
@rememberlenny rememberlenny deleted the lkb-add-remove-space-on-user branch July 25, 2017 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants