fix: 🐛 show dropdown link
This commit is contained in:
1 parent
c971d6d2ce
commit
ab1a642f66
4 files changed
+26
-22
No files matched your search
@@ -12,4 +12,9 @@ export default class ScopesScopeAuthMethodsIndexRoute extends Route {
|
||||
const scopeModel = this.modelFor('scopes.scope');
|
||||
controller.scopeModel = scopeModel;
|
||||
}
|
||||
// setupController(controller) {
|
||||
// const scope = this.modelFor('scopes.scope');
|
||||
// super.setupController(...arguments);
|
||||
// controller.setProperties({ scope });
|
||||
// }
|
||||
}
|
||||
@@ -13,28 +13,26 @@
|
||||
|
||||
<page.actions>
|
||||
|
||||
{{#if @model}}
|
||||
{{#if (can 'create collection' this.scope collection='auth-methods')}}
|
||||
{{#if @model}}
|
||||
<Rose::Dropdown
|
||||
@text={{t 'titles.new'}}
|
||||
@dropdownRight={{true}}
|
||||
as |dropdown|
|
||||
{{#if (can 'create collection' this.scopeModel collection='auth-methods')}}
|
||||
{{#if @model}}
|
||||
<Rose::Dropdown
|
||||
@text={{t 'titles.new'}}
|
||||
@dropdownRight={{true}}
|
||||
as |dropdown|
|
||||
>
|
||||
<dropdown.link
|
||||
@route='scopes.scope.auth-methods.new'
|
||||
@query={{hash type='password'}}
|
||||
>
|
||||
<dropdown.link
|
||||
@route='scopes.scope.auth-methods.new'
|
||||
@query={{hash type='password'}}
|
||||
>
|
||||
{{t 'resources.auth-method.types.password'}}
|
||||
</dropdown.link>
|
||||
<dropdown.link
|
||||
@route='scopes.scope.auth-methods.new'
|
||||
@query={{hash type='oidc'}}
|
||||
>
|
||||
{{t 'resources.auth-method.types.oidc'}}
|
||||
</dropdown.link>
|
||||
</Rose::Dropdown>
|
||||
{{/if}}
|
||||
{{t 'resources.auth-method.types.password'}}
|
||||
</dropdown.link>
|
||||
<dropdown.link
|
||||
@route='scopes.scope.auth-methods.new'
|
||||
@query={{hash type='oidc'}}
|
||||
>
|
||||
{{t 'resources.auth-method.types.oidc'}}
|
||||
</dropdown.link>
|
||||
</Rose::Dropdown>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</page.actions>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"compilerOptions":{"target":"es6","experimentalDecorators":true},"exclude":["node_modules","bower_components","tmp","vendor",".git","dist"]}
|
||||
@@ -53,7 +53,7 @@ module('Acceptance | auth-methods | list', function (hooks) {
|
||||
authenticateSession({});
|
||||
});
|
||||
|
||||
test('can navigate to users with proper authorization', async function (assert) {
|
||||
test('can navigate to auth methods with proper authorization', async function (assert) {
|
||||
assert.expect(2);
|
||||
await visit(orgURL);
|
||||
assert.ok(
|
||||
|
||||
Reference in new issue
Block a user