Luke Morris
de2e755f82
Add confirm dialog to removing Organization Tag
2018-01-31 17:39:05 -08:00
Luke Morris
34c52e17ee
Improve of user deletion messaging
2018-01-31 17:20:53 -08:00
Iris Scholten
2cb9026364
add better messaging for removing own user record
2018-01-31 16:43:51 -08:00
Iris Scholten
8f844ac0f8
improve the flash message verbiage when deleting a user from the userspage and standardized the duration time for flash messages to be 4s
2018-01-31 15:57:24 -08:00
Iris Scholten
2b1dc00cf0
improve the flash message verbiage to explicitly state the changes made
2018-01-31 15:25:28 -08:00
Alex P
499be94163
Merge branch 'feature/global-users' into feature/global-users-styles
2018-01-26 20:20:37 -08:00
Alex P
ad84ac864e
Set more appropriate column sizes for global users table and remove dropdown
2018-01-26 20:18:51 -08:00
Alex P
c91e35e10f
Refactor Tags component to include optional Add button
2018-01-26 20:16:31 -08:00
Alex P
2c709f1863
Allow for a custom class to be passed in to ConfirmButton
...
Also some cleanup
2018-01-26 20:15:54 -08:00
Jared Scheib
89eeedb27f
Filter out organizations from Add to Organization where the user has a role
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2018-01-26 20:15:42 -08:00
Jared Scheib
e4fc1c2ca7
Wire up remove & add user to organization from AllUsersPage
2018-01-26 20:07:02 -08:00
Jared Scheib
37eacef8c9
Show different success message for user delete from AllUsersPage vs UsersPage
2018-01-26 19:13:11 -08:00
Jared Scheib
8d494d4588
Comment, remove consoles, cleanup
2018-01-26 18:53:48 -08:00
Jared Scheib
7134153cb5
Fix linksReducer return state & make reducer default consistent
...
Remove actionTypes constants for links actions.
2018-01-26 18:53:08 -08:00
Alex P
f62c42b847
Use ConfirmButton instead of DeleteConfirmButtons
2018-01-26 18:51:48 -08:00
Jared Scheib
91dfe6bcf0
Refresh links every time current org is switched
2018-01-26 18:51:34 -08:00
Alex P
4b3c9aed17
Introduce ConfirmButton component
...
In essence the same as ConfirmDeleteButtons just adheres to the latest
patterns and is more compact
2018-01-26 18:51:04 -08:00
Jared Scheib
aea9b5b918
Un-blackout LINKS_ actions from errors middleware so dispatch registers with Redux
2018-01-26 18:50:24 -08:00
Alex P
a36dad3e38
Prevent text wrap of user is me label
2018-01-26 17:58:48 -08:00
Alex P
c765dd0df6
Style all users superadmins toggle
2018-01-26 17:56:00 -08:00
Alex P
80d5fee016
Fix weird classname output in SlideToggle
...
empty string does the trick
2018-01-26 17:55:44 -08:00
Alex P
de306fc393
Redesign disabled state of slide toggle
2018-01-26 17:44:40 -08:00
Jared Scheib
d504af713d
WIP Refactor AJAX links state management to use Redux
...
Ensures that links are always updated when me current organization
is changed, so that Admin Chronograf / Current Org Users works.
NOTE: Next step is understanding why dispatch isn't registering
LINKS_GET_REQUESTED or LINKS_GET_COMPLETED actions with Redux.
2018-01-17 19:01:16 -08:00
Jared Scheib
1ad652a3d2
Name excludeBasepath AJAX config option so options can be extended
2018-01-17 16:35:21 -08:00
Jared Scheib
8979e042f7
Update rawUsers to allUsers per /users API change
2018-01-17 15:13:17 -08:00
Jared Scheib
ccd29bf97e
Fix OpsGenieConfig delete handlers & standardize with TagInput's
2018-01-17 14:55:19 -08:00
Jared Scheib
81eea19400
Wire up user organizations as Tags in AllUsersTable
2018-01-17 14:03:01 -08:00
Jared Scheib
ca59e8fcf4
Factor out Tags, Tag, & TagInput into shared components
2018-01-17 13:07:17 -08:00
Jared Scheib
77b1531ac8
Add blank shared Tags & TagInput components files
2018-01-17 13:02:39 -08:00
Michael Desa
ec4a00eb11
Fix RouteMatchesPrincipal if org isnt on principal
2018-01-17 12:42:32 -05:00
Michael Desa
e8ed30a9e6
Populate links response with organiation on JWT
2018-01-17 12:26:28 -05:00
Michael Desa
e1b071c002
Add correct users route to all routes
2018-01-16 17:03:46 -05:00
Michael Desa
6168dc3e06
Nest user routes under organization
...
Add global user routes
2018-01-16 16:45:58 -05:00
Michael Desa
a48019b643
Allow UpdateUser to accept empty roles
2018-01-12 12:37:30 -05:00
Michael Desa
f7f86f0ea6
Add wildcard role and validate users roles in CRUD
...
The server may now specify a '*' to indicate that the server should
retrieve the organizations default role and assign it to the user.
2018-01-12 12:27:55 -05:00
Jared Scheib
fd429aaeee
Move All New Users Are SuperAdmin toggle to AllUsersTable
2018-01-11 17:18:05 -08:00
Jared Scheib
0e99bbc1a9
Remove unnecessary Authorized HOC around AllNewUsersSuperAdmin toggle
2018-01-11 17:00:40 -08:00
Jared Scheib
1c380eb55e
Add Organizations column with temp spans for orgs
...
Move Role column to right & remove Role table header.
Move table sizing constants out of component classes.
2018-01-10 16:27:03 -08:00
Jared Scheib
1856484670
Move AllUsersTable SuperAdmin column & toggles to right-most
2018-01-10 16:12:25 -08:00
Jared Scheib
679d2374e2
Make AllUsersTableEmpty an SFC
2018-01-10 16:09:49 -08:00
Jared Scheib
a9877bc1cf
Remove obsolete Authorized HOC from AllUsersTableEmpty
2018-01-10 16:08:22 -08:00
Jared Scheib
6e5b5c2790
Make UsersTableEmpty an SFC
2018-01-10 16:06:48 -08:00
Jared Scheib
5231218c5e
Rename 'Create User' to 'Add User' in both Chronograf Admin pages
2018-01-10 15:55:20 -08:00
Jared Scheib
6728ec5d82
Reorient AllUsersTable around organizations, not roles
...
Use new links.rawUsers route to get users for AllUsersPage.
Introduce '*' role name to tell server to assign org defaultRole.
Update table header to display number of users & num orgs.
Remove concept of roles from AllUsers UI.
Note: The update & create AJAX are both broken or disabled until
the server is modified to accept '*' for role.
2018-01-10 15:51:21 -08:00
Michael Desa
4c33cf7846
Add rawUsers route to AllLinks
2018-01-10 11:18:08 -05:00
Jared Scheib
68a0a54afd
Rename EmptyUsersTable to UsersTableEmpty for new consistency
2018-01-09 18:08:07 -08:00
Jared Scheib
97739e84be
Duplicate UsersPage components into AllUsersPage; remove SuperAdmin
2018-01-09 18:01:15 -08:00
Jared Scheib
a5ba7b035b
Add temp duplicate UsersPage for All Users
2018-01-09 17:27:31 -08:00
Jared Scheib
b2b34adaae
Rename Users tab to Current Org Users
2018-01-09 17:21:25 -08:00
Michael Desa
1c33580f99
Modify CRUD user handlers for global operations
...
Add raw query param middleware performing raw ops
This commit introduces middleware that allows SuperAdmin Users to
specify a query param `raw=true` which will give them raw access to the
data store. Raw access means that it is not in behind the usual
organization facade.
Currently, only the user routes use this middleware.
2018-01-09 13:43:33 -05:00