consul/ui-v2/app/components/consul-token-list
John Cowen 4c58f9402e
ui: Support for Node Identities (#8137)
* Add all the new data required for NodeIdentities

* Add potential NodeIdentity to the token list component

* Amend the policy-form/selector to allow node identity creation

* Fix up CSS for radio buttons and select label

* Add node-identity policy template component

* Fix up and add acceptance tests for NodeIndentities

* Make sure policy previews take node identities into account

* Only show certain policy markup if those we have those policies

* Potentially temporarily hide dt's that don't have icons yet
2020-06-23 09:59:43 +01:00
..
README.mdx ui: Token listing redesign (#8117) 2020-06-17 10:25:54 +01:00
index.hbs ui: Support for Node Identities (#8137) 2020-06-23 09:59:43 +01:00
index.js ui: Token listing redesign (#8117) 2020-06-17 10:25:54 +01:00
pageobject.js ui: Token listing redesign (#8117) 2020-06-17 10:25:54 +01:00

README.mdx

## ConsulTokenList

```
<ConsulTokenList
  @items={{items}}
  @token={{userToken}}
  @onuse={{action 'use'}}
  @ondelete={{action 'delete'}}
  @onlogout={{action 'logout'}}
  @onclone={{action 'clone'}}
/>
```

A presentational component for rendering Consul ACL tokens

### Arguments

| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `array` |  | An array of ACL tokens |
| `token` | `Token` |  | A token object to use for comparision for current token, usually the users current token |
| `onuse` | `function` |  | An action to execute when the `Use` action is clicked |
| `ondelete` | `function` |  | An action to execute when the `Delete` action is clicked |
| `onlogout` | `function` |  | An action to execute when the `Logout` action is clicked |
| `onclone` | `function` |  | An action to execute when the `Clone/Duplicate` action is clicked |

### See

- [Component Source Code](./index.js)
- [TemplateSource Code](./index.hbs)

---