feat: 🎸 hide primary auth method behind feature flag

This commit is contained in:
Randall Morey committed 2021-03-25 16:15:32 -04:00
1 parent 22131864f8
commit e960c34542
5 files changed
+1231 -941

No files matched your search

@@ -1,11 +1,13 @@
<h2>
{{t "resources.auth-method.title"}}
{{#if @model.isPrimary}}
&nbsp;
<Rose::Badge @style="success-outline" @size="">
{{t 'states.primary'}}
</Rose::Badge>
&nbsp;
{{#if (feature-flag 'primary-auth-method')}}
{{#if @model.isPrimary}}
&nbsp;
<Rose::Badge @style="success-outline" @size="">
{{t 'states.primary'}}
</Rose::Badge>
&nbsp;
{{/if}}
{{/if}}
<DocLink @doc="auth-method" @iconSize="large" />
</h2>
@@ -36,7 +36,9 @@
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
<row.cell></row.cell>
{{#if (feature-flag 'primary-auth-method')}}
<row.cell></row.cell>
{{/if}}
</header.row>
</table.header>
@@ -66,13 +68,15 @@
<code>{{authMethod.id}}</code>
</Copyable>
</row.cell>
<row.cell>
{{#if authMethod.isPrimary}}
<Rose::Badge @style="success-outline">
{{t 'states.primary'}}
</Rose::Badge>
{{/if}}
</row.cell>
{{#if (feature-flag 'primary-auth-method')}}
<row.cell>
{{#if authMethod.isPrimary}}
<Rose::Badge @style="success-outline">
{{t 'states.primary'}}
</Rose::Badge>
{{/if}}
</row.cell>
{{/if}}
</body.row>
{{/each}}
</table.body>
+4
View File
@@ -83,6 +83,10 @@ module.exports = function (environment) {
'ember-cli-mirage': {
directory: '../../addons/api/mirage',
},
featureFlags: {
'primary-auth-method': false,
},
};
// Unsafe policy is necessary in development and test environments, but should
+1
View File
@@ -62,6 +62,7 @@
"ember-concurrency": "^1.3.0",
"ember-exam": "^6.0.1",
"ember-export-application-global": "^2.0.1",
"ember-feature-flags": "^6.0.0",
"ember-inline-svg": "^1.0.0",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^0.1.6",
+1206 -927
View File
File diff suppressed because it is too large. Load diff