Skip to content

Commit

Permalink
updated based on the design
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriia-ruban committed Aug 31, 2023
1 parent c0110e3 commit 9267daf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions ui/packages/consul-ui/app/components/consul/policy/list/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
@items={{@items}}
as |item|>
<BlockSlot @name="header">
{{#if (eq (policy/typeof item) 'policy-management')}}
{{#if (or (eq (policy/typeof item) 'policy-management') (eq (policy/typeof item) 'read-only'))}}
<dl class="policy-management">
<dt>Type</dt>
<dd>
<Tooltip>
Global Management Policy
</Tooltip>
{{#if (eq (policy/typeof item) 'policy-management')}}
<Tooltip>
Global Management Policy
</Tooltip>
{{else}}
<Tooltip>
Global Read-only Policy
</Tooltip>
{{/if}}
</dd>
</dl>
{{/if}}
Expand Down
4 changes: 2 additions & 2 deletions ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ as |dc partition nspace id item create|}}
</Hds::Alert>
{{else}}
<Hds::Alert @type="inline" @icon="star-fill" class="mb-3 mt-2" as |A|>
<A.Title>Read-only</A.Title>
<A.Description>This global-read-only token is built into Consul's policy system. You can apply this special policy to tokens for full access. This policy is not editable or removeable, but can be ignored by not applying it to any tokens.</A.Description>
<A.Title>Built-in policy</A.Title>
<A.Description>This global-read-only policy is built into Consul's policy system. You can apply this special policy to tokens for read-only access to all Consul components. This policy is not editable or removable, but can be ignored by not applying it to any tokens.</A.Description>
<A.Link::Standalone @text='Learn more'
@href="{{env 'CONSUL_DOCS_URL'}}/guides/acl.html#builtin-policies"
@icon='docs-link'
Expand Down

0 comments on commit 9267daf

Please sign in to comment.