Row striping for platform roles, users, and projects
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Mon, 8 May 2017 17:49:59 +0000 (13:49 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Mon, 8 May 2017 17:49:59 +0000 (13:49 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/framework/core/modules/api/userManagementAPI.js
skyquake/framework/style/_colors.scss
skyquake/plugins/project_management/src/dashboard/dashboard.jsx
skyquake/plugins/project_management/src/dashboard/projectMgmt.scss
skyquake/plugins/user_management/src/dashboard/userMgmt.scss
skyquake/plugins/user_management/src/platformRoleManagement/platformRoleManagement.scss

index c05c2b3..1aee575 100644 (file)
@@ -211,7 +211,7 @@ UserManagement.update = function(req) {
     var api_server = req.query['api_server'];
     var bodyData = req.body;
     data = {
-        "user":[bodyData]
+        "rw-user:user": bodyData
     }
     var updateTasks = [];
     if(bodyData.hasOwnProperty('old-password')) {
@@ -237,7 +237,7 @@ UserManagement.update = function(req) {
         updateTasks.push(changePW);
     };
     var updateUser = rp({
-                uri: utils.confdPort(api_server) + '/api/config/user-config',
+                uri: utils.confdPort(api_server) + '/api/config/user-config/user/' + bodyData['user-name'] + ',' +  bodyData['user-domain'],
                 method: 'PUT',
                 headers: _.extend({}, constants.HTTP_HEADERS.accept.data, {
                     'Authorization': req.session && req.session.authorization
index 24a4475..a01c293 100644 (file)
@@ -66,6 +66,7 @@ $neutral-light-3: hsl(360, 100%, 50%);
 $neutral-light-4: hsl(360, 100%, 50%);
 $neutral-light-5: hsl(360, 100%, 50%);
 
+$neutral-dark-0: hsl(0, 0%, 80.7%);
 $neutral-dark-1: hsl(0, 0%, 63.7%);
 $neutral-dark-2: hsl(0, 0%, 56.7%);
 $neutral-dark-3: hsl(0, 0%, 49.7%);
index 66c3f48..c0adc7a 100644 (file)
@@ -311,7 +311,7 @@ class ProjectManagementDashboard extends React.Component {
                         </FormSection>
                         <FormSection title="USER ROLES"  className="userTable">
 
-                        <table>
+                        <table className="projectTable">
                             <thead>
                                 <tr>
                                     {!state.isReadOnly ? <td></td> : null}
index eca6a59..3b23963 100644 (file)
                     justify-content:center;
             }
         }
+        tbody tr {
+            &:nth-child(even) {
+                background:$neutral-dark-0;
+            }
+        }
     }
     .userTable {
         .FormSection-body {
         font-weight:bold;
     }
     &--data {
+        &:nth-child(even) {
+            background:$neutral-dark-0;
+        }
         &:hover:not(&-active) {
             background:$neutral-dark-1;
         }
index a265f0d..a332c55 100644 (file)
         font-weight:bold;
     }
     &--data {
+        &:nth-child(even) {
+            background:$neutral-dark-0;
+        }
         &:hover:not(&-active) {
             background:$neutral-dark-1;
         }
index dc8fcce..ac81d90 100644 (file)
                     justify-content:center;
             }
         }
+        tbody tr {
+            &:nth-child(even) {
+                background:$neutral-dark-0;
+            }
+        }
     }
 }
 
         font-weight:bold;
     }
     &--data {
+        &:nth-child(even) {
+            background:$neutral-dark-0;
+        }
         &:hover:not(&-active) {
             background:$neutral-dark-1;
         }