Merge branch 'main' into hosts

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2021-08-20 11:42:50 -07:00
commit 3fd8d2d01f
25 files changed
+729 -336

No files matched your search

@@ -59,12 +59,14 @@
>
{{t 'resources.account.actions.create'}}
</dropdown.link>
<dropdown.separator />
<dropdown.button
@style='danger'
@disabled={{@model.canSave}}
{{on 'click' (route-action 'delete' @model)}}
>
{{t 'resources.auth-method.actions.delete'}}
</dropdown.button>
{{#if (can 'delete model' @model)}}
<dropdown.separator />
<dropdown.button
@style='danger'
@disabled={{@model.canSave}}
{{on 'click' (route-action 'delete' @model)}}
>
{{t 'resources.auth-method.actions.delete'}}
</dropdown.button>
{{/if}}
</Rose::Dropdown>
@@ -76,6 +76,19 @@
}}
{{#if authMethod.isOIDC}}
{{#if (feature-flag 'oidc-crud')}}
{{#if (can 'read model' authMethod)}}
<LinkTo
@route='scopes.scope.auth-methods.auth-method'
@model={{authMethod.id}}
>
{{authMethod.displayName}}
</LinkTo>
{{else}}
{{authMethod.displayName}}
{{/if}}
{{/if}}
{{else}}
{{#if (can 'read model' authMethod)}}
<LinkTo
@route='scopes.scope.auth-methods.auth-method'
@model={{authMethod.id}}
@@ -85,13 +98,6 @@
{{else}}
{{authMethod.displayName}}
{{/if}}
{{else}}
<LinkTo
@route='scopes.scope.auth-methods.auth-method'
@model={{authMethod.id}}
>
{{authMethod.displayName}}
</LinkTo>
{{/if}}
<p>{{authMethod.description}}</p>
</row.headerCell>
@@ -37,9 +37,13 @@
{{#each @model as |role|}}
<body.row as |row|>
<row.headerCell>
<LinkTo @route='scopes.scope.roles.role' @model={{role.id}}>
{{#if (can 'read model' role)}}
<LinkTo @route='scopes.scope.roles.role' @model={{role.id}}>
{{role.displayName}}
</LinkTo>
{{else}}
{{role.displayName}}
</LinkTo>
{{/if}}
<p>{{role.description}}</p>
</row.headerCell>
<row.cell>
@@ -6,12 +6,14 @@
<dropdown.link @route='scopes.scope.roles.role.add-principals'>
{{t 'resources.role.principal.actions.add-principals'}}
</dropdown.link>
<dropdown.separator />
<dropdown.button
@style='danger'
@disabled={{@model.canSave}}
{{on 'click' (route-action 'delete' @model)}}
>
{{t 'resources.role.actions.delete'}}
</dropdown.button>
{{#if (can 'delete model' @model)}}
<dropdown.separator />
<dropdown.button
@style='danger'
@disabled={{@model.canSave}}
{{on 'click' (route-action 'delete' @model)}}
>
{{t 'resources.role.actions.delete'}}
</dropdown.button>
{{/if}}
</Rose::Dropdown>