chore: 🤖 cleanup feature flags - OIDC (#1245)

* chore: 🤖 cleanup OIDC feature flag
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2022-08-11 15:37:44 -07:00
1 parent d8b5056094
commit 746426fc82
12 files changed
+106 -188

No files matched your search

@@ -40,22 +40,20 @@
@dropdownRight={{true}}
as |dropdown|
>
{{#if (feature-flag 'primary-auth-method')}}
{{#if @model.isPrimary}}
<dropdown.button
@disabled={{@model.canSave}}
{{on 'click' (route-action 'removeAsPrimary' @model)}}
>
{{t 'resources.auth-method.actions.remove-as-primary'}}
</dropdown.button>
{{else}}
<dropdown.button
@disabled={{@model.canSave}}
{{on 'click' (route-action 'makePrimary' @model)}}
>
{{t 'resources.auth-method.actions.make-primary'}}
</dropdown.button>
{{/if}}
{{#if @model.isPrimary}}
<dropdown.button
@disabled={{@model.canSave}}
{{on 'click' (route-action 'removeAsPrimary' @model)}}
>
{{t 'resources.auth-method.actions.remove-as-primary'}}
</dropdown.button>
{{else}}
<dropdown.button
@disabled={{@model.canSave}}
{{on 'click' (route-action 'makePrimary' @model)}}
>
{{t 'resources.auth-method.actions.make-primary'}}
</dropdown.button>
{{/if}}
{{#if (can 'create model' @model collection='accounts')}}