|
|
@@ -49,270 +49,132 @@ exports[`Render should render invitees 1`] = `
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr
|
|
|
+ <Connect(InviteeRow)
|
|
|
+ invitee={
|
|
|
+ Object {
|
|
|
+ "code": "asdfasdfsadf-0",
|
|
|
+ "createdOn": "2018-10-02",
|
|
|
+ "email": "invitee-0@test.com",
|
|
|
+ "emailSent": true,
|
|
|
+ "emailSentOn": "2018-10-02",
|
|
|
+ "id": 0,
|
|
|
+ "invitedByEmail": "admin@grafana.com",
|
|
|
+ "invitedByLogin": "admin",
|
|
|
+ "invitedByName": "admin",
|
|
|
+ "name": "invitee-0",
|
|
|
+ "orgId": 1,
|
|
|
+ "role": "viewer",
|
|
|
+ "status": "not accepted",
|
|
|
+ "url": "localhost/invite/0",
|
|
|
+ }
|
|
|
+ }
|
|
|
key="0-0"
|
|
|
- >
|
|
|
- <td>
|
|
|
- invitee-0@test.com
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- invitee-0
|
|
|
- </td>
|
|
|
- <td
|
|
|
- className="text-right"
|
|
|
- >
|
|
|
- <button
|
|
|
- className="btn btn-inverse btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <textarea
|
|
|
- readOnly={true}
|
|
|
- style={
|
|
|
- Object {
|
|
|
- "position": "absolute",
|
|
|
- "right": -1000,
|
|
|
- }
|
|
|
- }
|
|
|
- value="localhost/invite/$0"
|
|
|
- />
|
|
|
- <i
|
|
|
- className="fa fa-clipboard"
|
|
|
- />
|
|
|
- Copy Invite
|
|
|
- </button>
|
|
|
-
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <button
|
|
|
- className="btn btn-danger btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-remove"
|
|
|
- />
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr
|
|
|
+ />
|
|
|
+ <Connect(InviteeRow)
|
|
|
+ invitee={
|
|
|
+ Object {
|
|
|
+ "code": "asdfasdfsadf-1",
|
|
|
+ "createdOn": "2018-10-02",
|
|
|
+ "email": "invitee-1@test.com",
|
|
|
+ "emailSent": true,
|
|
|
+ "emailSentOn": "2018-10-02",
|
|
|
+ "id": 1,
|
|
|
+ "invitedByEmail": "admin@grafana.com",
|
|
|
+ "invitedByLogin": "admin",
|
|
|
+ "invitedByName": "admin",
|
|
|
+ "name": "invitee-1",
|
|
|
+ "orgId": 1,
|
|
|
+ "role": "viewer",
|
|
|
+ "status": "not accepted",
|
|
|
+ "url": "localhost/invite/1",
|
|
|
+ }
|
|
|
+ }
|
|
|
key="1-1"
|
|
|
- >
|
|
|
- <td>
|
|
|
- invitee-1@test.com
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- invitee-1
|
|
|
- </td>
|
|
|
- <td
|
|
|
- className="text-right"
|
|
|
- >
|
|
|
- <button
|
|
|
- className="btn btn-inverse btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <textarea
|
|
|
- readOnly={true}
|
|
|
- style={
|
|
|
- Object {
|
|
|
- "position": "absolute",
|
|
|
- "right": -1000,
|
|
|
- }
|
|
|
- }
|
|
|
- value="localhost/invite/$1"
|
|
|
- />
|
|
|
- <i
|
|
|
- className="fa fa-clipboard"
|
|
|
- />
|
|
|
- Copy Invite
|
|
|
- </button>
|
|
|
-
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <button
|
|
|
- className="btn btn-danger btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-remove"
|
|
|
- />
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr
|
|
|
+ />
|
|
|
+ <Connect(InviteeRow)
|
|
|
+ invitee={
|
|
|
+ Object {
|
|
|
+ "code": "asdfasdfsadf-2",
|
|
|
+ "createdOn": "2018-10-02",
|
|
|
+ "email": "invitee-2@test.com",
|
|
|
+ "emailSent": true,
|
|
|
+ "emailSentOn": "2018-10-02",
|
|
|
+ "id": 2,
|
|
|
+ "invitedByEmail": "admin@grafana.com",
|
|
|
+ "invitedByLogin": "admin",
|
|
|
+ "invitedByName": "admin",
|
|
|
+ "name": "invitee-2",
|
|
|
+ "orgId": 1,
|
|
|
+ "role": "viewer",
|
|
|
+ "status": "not accepted",
|
|
|
+ "url": "localhost/invite/2",
|
|
|
+ }
|
|
|
+ }
|
|
|
key="2-2"
|
|
|
- >
|
|
|
- <td>
|
|
|
- invitee-2@test.com
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- invitee-2
|
|
|
- </td>
|
|
|
- <td
|
|
|
- className="text-right"
|
|
|
- >
|
|
|
- <button
|
|
|
- className="btn btn-inverse btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <textarea
|
|
|
- readOnly={true}
|
|
|
- style={
|
|
|
- Object {
|
|
|
- "position": "absolute",
|
|
|
- "right": -1000,
|
|
|
- }
|
|
|
- }
|
|
|
- value="localhost/invite/$2"
|
|
|
- />
|
|
|
- <i
|
|
|
- className="fa fa-clipboard"
|
|
|
- />
|
|
|
- Copy Invite
|
|
|
- </button>
|
|
|
-
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <button
|
|
|
- className="btn btn-danger btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-remove"
|
|
|
- />
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr
|
|
|
+ />
|
|
|
+ <Connect(InviteeRow)
|
|
|
+ invitee={
|
|
|
+ Object {
|
|
|
+ "code": "asdfasdfsadf-3",
|
|
|
+ "createdOn": "2018-10-02",
|
|
|
+ "email": "invitee-3@test.com",
|
|
|
+ "emailSent": true,
|
|
|
+ "emailSentOn": "2018-10-02",
|
|
|
+ "id": 3,
|
|
|
+ "invitedByEmail": "admin@grafana.com",
|
|
|
+ "invitedByLogin": "admin",
|
|
|
+ "invitedByName": "admin",
|
|
|
+ "name": "invitee-3",
|
|
|
+ "orgId": 1,
|
|
|
+ "role": "viewer",
|
|
|
+ "status": "not accepted",
|
|
|
+ "url": "localhost/invite/3",
|
|
|
+ }
|
|
|
+ }
|
|
|
key="3-3"
|
|
|
- >
|
|
|
- <td>
|
|
|
- invitee-3@test.com
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- invitee-3
|
|
|
- </td>
|
|
|
- <td
|
|
|
- className="text-right"
|
|
|
- >
|
|
|
- <button
|
|
|
- className="btn btn-inverse btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <textarea
|
|
|
- readOnly={true}
|
|
|
- style={
|
|
|
- Object {
|
|
|
- "position": "absolute",
|
|
|
- "right": -1000,
|
|
|
- }
|
|
|
- }
|
|
|
- value="localhost/invite/$3"
|
|
|
- />
|
|
|
- <i
|
|
|
- className="fa fa-clipboard"
|
|
|
- />
|
|
|
- Copy Invite
|
|
|
- </button>
|
|
|
-
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <button
|
|
|
- className="btn btn-danger btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-remove"
|
|
|
- />
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr
|
|
|
+ />
|
|
|
+ <Connect(InviteeRow)
|
|
|
+ invitee={
|
|
|
+ Object {
|
|
|
+ "code": "asdfasdfsadf-4",
|
|
|
+ "createdOn": "2018-10-02",
|
|
|
+ "email": "invitee-4@test.com",
|
|
|
+ "emailSent": true,
|
|
|
+ "emailSentOn": "2018-10-02",
|
|
|
+ "id": 4,
|
|
|
+ "invitedByEmail": "admin@grafana.com",
|
|
|
+ "invitedByLogin": "admin",
|
|
|
+ "invitedByName": "admin",
|
|
|
+ "name": "invitee-4",
|
|
|
+ "orgId": 1,
|
|
|
+ "role": "viewer",
|
|
|
+ "status": "not accepted",
|
|
|
+ "url": "localhost/invite/4",
|
|
|
+ }
|
|
|
+ }
|
|
|
key="4-4"
|
|
|
- >
|
|
|
- <td>
|
|
|
- invitee-4@test.com
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- invitee-4
|
|
|
- </td>
|
|
|
- <td
|
|
|
- className="text-right"
|
|
|
- >
|
|
|
- <button
|
|
|
- className="btn btn-inverse btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <textarea
|
|
|
- readOnly={true}
|
|
|
- style={
|
|
|
- Object {
|
|
|
- "position": "absolute",
|
|
|
- "right": -1000,
|
|
|
- }
|
|
|
- }
|
|
|
- value="localhost/invite/$4"
|
|
|
- />
|
|
|
- <i
|
|
|
- className="fa fa-clipboard"
|
|
|
- />
|
|
|
- Copy Invite
|
|
|
- </button>
|
|
|
-
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <button
|
|
|
- className="btn btn-danger btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-remove"
|
|
|
- />
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr
|
|
|
+ />
|
|
|
+ <Connect(InviteeRow)
|
|
|
+ invitee={
|
|
|
+ Object {
|
|
|
+ "code": "asdfasdfsadf-5",
|
|
|
+ "createdOn": "2018-10-02",
|
|
|
+ "email": "invitee-5@test.com",
|
|
|
+ "emailSent": true,
|
|
|
+ "emailSentOn": "2018-10-02",
|
|
|
+ "id": 5,
|
|
|
+ "invitedByEmail": "admin@grafana.com",
|
|
|
+ "invitedByLogin": "admin",
|
|
|
+ "invitedByName": "admin",
|
|
|
+ "name": "invitee-5",
|
|
|
+ "orgId": 1,
|
|
|
+ "role": "viewer",
|
|
|
+ "status": "not accepted",
|
|
|
+ "url": "localhost/invite/5",
|
|
|
+ }
|
|
|
+ }
|
|
|
key="5-5"
|
|
|
- >
|
|
|
- <td>
|
|
|
- invitee-5@test.com
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- invitee-5
|
|
|
- </td>
|
|
|
- <td
|
|
|
- className="text-right"
|
|
|
- >
|
|
|
- <button
|
|
|
- className="btn btn-inverse btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <textarea
|
|
|
- readOnly={true}
|
|
|
- style={
|
|
|
- Object {
|
|
|
- "position": "absolute",
|
|
|
- "right": -1000,
|
|
|
- }
|
|
|
- }
|
|
|
- value="localhost/invite/$5"
|
|
|
- />
|
|
|
- <i
|
|
|
- className="fa fa-clipboard"
|
|
|
- />
|
|
|
- Copy Invite
|
|
|
- </button>
|
|
|
-
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <button
|
|
|
- className="btn btn-danger btn-mini"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-remove"
|
|
|
- />
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ />
|
|
|
</tbody>
|
|
|
</table>
|
|
|
`;
|