Luke Morris
c06e8a8c57
Refactor SideNav & NavBlock to remove unnecessary cloneElement
...
Remove additionalProps & some cloneElement need from Authorized.
Incidentally fix dispatch error from throwing.
Clean up.
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:37:17 -07:00
Jared Scheib
8acd015131
Refactor Authorized return logic to be in the affirmative
...
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-10-27 17:24:50 -07:00
Alex Paxton
bec27b0fd5
Fix & clean up Authorized render logic
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:06:06 -07:00
Jared Scheib
6704e2b6ee
Rename source-indicator.scss to info-indicators.scss for role-indicator addition
2017-10-27 16:46:44 -07:00
Jared Scheib
0a4d395747
Simplify return logic if replaceWith is undefined
2017-10-27 16:42:41 -07:00
Jared Scheib
8153f57394
Use lodash to more safely get me role
2017-10-27 16:42:20 -07:00
Jared Scheib
9fd9ffa4f5
Revert "Render link to Rule Builder based on user authorization"
...
This reverts commit 31a00ca7f9
.
2017-10-26 18:03:45 -07:00
Jared Scheib
3fbc07bf89
Revert "Render Create Rule & Write TICKscript buttons based on user authorization"
...
This reverts commit 51ab78cc3f
.
2017-10-26 18:02:26 -07:00
Jared Scheib
8ff10b58b3
Revert "Render Delete & Edit TICKscript buttons in Rules Table based on user authorization"
...
This reverts commit 8ffa4cbe5b
.
2017-10-26 17:58:58 -07:00
Jared Scheib
396bf3f215
Revert "Render Edit TICKscript and Delete buttons in TaskTable based on user authorization"
...
This reverts commit 32f4167b9f
.
2017-10-26 17:56:34 -07:00
Jared Scheib
fddb603d59
Revert "Disable rule Enabled toggle in TaskTable based on user authorization"
...
This reverts commit 71645a6b11
.
2017-10-26 17:55:33 -07:00
Jared Scheib
eeb5ad5817
Revert "Render Write Data button based on user authorization"
...
This reverts commit 4fee049820
.
2017-10-26 17:54:00 -07:00
Jared Scheib
71645a6b11
Disable rule Enabled toggle in TaskTable based on user authorization
2017-10-26 13:31:44 -07:00
Alex P
af5847fedf
Render Add Graph button in empty cell based on user authorization
2017-10-25 20:13:54 -07:00
Alex P
1ae3b7a743
Render Add Config button in sources table based on user authorization
2017-10-25 18:40:48 -07:00
Alex P
43d06f2e81
Override layout resize and drag functionality based on user authorization
2017-10-25 18:37:45 -07:00
Alex P
6fa91466ec
Allow render of Authorized child if propsOverride has been specified
...
In this case we don’t want to obscure the wrapped component, just
render it with some props modified
2017-10-25 18:31:25 -07:00
Alex P
448c276f20
Guard against empty arrays of dropdown actions
2017-10-25 18:30:35 -07:00
Alex Paxton
8ef461e7fa
Remove location required from NavItems propTypes since not always available immediately
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 17:00:27 -07:00
Alex Paxton
b51429a954
WIP Introduce propsOverride to Authorized HOC to limit props based on authorization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 16:58:47 -07:00
Jared Scheib
6c17c46877
Render Admin NavBlock based on authorization
...
Require location prop as propType in SideNav to prevent silent fail.
Add guard clause on isUsingAuth to prevent DOM break in Authorized.
Consolidate return on Authorized render.
Clean up Authorized.
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-25 16:22:00 -07:00
Alex P
07d42b8ea9
Create component to indicate current role to the user
2017-10-25 14:14:35 -07:00
Alex P
12b19cc918
Render Add Source, Delete Source, and Edit Source buttons based on user authorization
2017-10-25 13:41:32 -07:00
Alex P
32f4167b9f
Render Edit TICKscript and Delete buttons in TaskTable based on user authorization
2017-10-25 12:35:24 -07:00
Alex P
31a00ca7f9
Render link to Rule Builder based on user authorization
2017-10-25 10:41:04 -07:00
Alex P
8ffa4cbe5b
Render Delete & Edit TICKscript buttons in Rules Table based on user authorization
2017-10-25 10:37:33 -07:00
Alex P
51ab78cc3f
Render Create Rule & Write TICKscript buttons based on user authorization
2017-10-25 10:33:06 -07:00
Alex P
4fee049820
Render Write Data button based on user authorization
2017-10-25 10:29:24 -07:00
Jared Scheib
c6ed4da5b4
Refactor Authorized HOC to SFC
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:37:01 -07:00
Alex Paxton
a9f18aa508
Export isAuthorized for global use
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:36:32 -07:00
Jared Scheib
f9d65e59d2
Render layout cell menu based on authorization
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:28:17 -07:00
Alex Paxton
b9fbdcf49d
Render template variables manage button based on authorization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:22:56 -07:00
Jared Scheib
756a128033
Render Dashboard rename based on Authorization
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:19:18 -07:00
Jared Scheib
76b665261f
Merge branch 'multitenancy' into multitenancy_dashboards_page_readonly
2017-10-24 18:00:38 -07:00
Alex Paxton
ecb825643c
Wrap 'Add Cell' with Authorized HOC
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:51:38 -07:00
Jared Scheib
c603cfe746
Cleanup
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:48:41 -07:00
Jared Scheib
06b54b2155
Render original component in Authorized if not using auth
...
Make isUsingAuth a app-wide Redux key. Refactor its usage
in SideNav, and use it in Authorized.
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:43:16 -07:00
Alex Paxton
9519e0b9b1
Add param to Authorized to replace unauthorized component with node
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:16:11 -07:00
Jared Scheib
102b98873d
Export role name consts in client to fix Authorized HOC
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:04:06 -07:00
Alex P
b1915ab53c
Fix typo in prop
2017-10-24 13:30:51 -07:00
Andrew Watkins
49678e765e
Add tern-project to gitignore
2017-10-24 13:00:40 -07:00
Hunter Trujillo
0249bbbcd6
Remove isInDataExplorer props. Refactor GroupByTimeDropdown to SFC. Fix isInDataExplorer and isInRuleBuilder methods.
2017-10-24 12:41:55 -06:00
Andrew Watkins
9e025756b1
Merge pull request #2155 from influxdata/blocker/template-vars
...
Fix broken update of dashboards and TVs
2017-10-24 11:02:11 -07:00
Andrew Watkins
a2fe7a9898
Fix broken update of dashboards and TVs
2017-10-24 10:55:49 -07:00
Hunter Trujillo
34eabba071
Merge pull request #2153 from influxdata/blocker/field-value-condition
...
Fix field name not displaying in KapacitorRule builder
2017-10-24 11:35:47 -06:00
Andrew Watkins
42e43b55b7
Fix field name not displaying in KapacitorRule builder
2017-10-24 10:13:02 -07:00
Hunter Trujillo
68655439b7
Fix status page.
2017-10-24 10:54:07 -06:00
Nathan Haugo
1ce78dd21b
Update changelog and version number for 1.3.10.0
2017-10-24 09:34:31 -04:00
Alex Paxton
8b7660d3ab
Implement Authorized HOC on DashboardsPage
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-23 17:50:43 -07:00
Jared Scheib
7a305887ef
Add 'Authorized' HOC to hide components based on me Role
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-23 17:44:08 -07:00