feat: 🎸 Add breadcrumbs to managed groups
Add breadcrumbs to managed groups
This commit is contained in:
1 parent
1225774806
commit
ba73a89d8f
6 files changed
+99
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
import Controller from '@ember/controller';
|
||||||
|
import { inject as service } from '@ember/service';
|
||||||
|
|
||||||
|
export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsController extends Controller {
|
||||||
|
// =services
|
||||||
|
|
||||||
|
@service intl;
|
||||||
|
|
||||||
|
// =attributes
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Translated managed groups breadcrumb
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
get breadCrumb() {
|
||||||
|
return this.intl.t('resources.managed-group.title_plural');
|
||||||
|
}
|
||||||
|
}
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
import Controller from '@ember/controller';
|
||||||
|
|
||||||
|
export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupController extends Controller {
|
||||||
|
// =attributes
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A managed group breadcrumb
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
get breadCrumb() {
|
||||||
|
return this.model.displayName;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import Controller from '@ember/controller';
|
||||||
|
import { inject as service } from '@ember/service';
|
||||||
|
|
||||||
|
export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsNewController extends Controller {
|
||||||
|
// =services
|
||||||
|
|
||||||
|
@service intl;
|
||||||
|
|
||||||
|
// =attributes
|
||||||
|
/**
|
||||||
|
* Translated new managed group breadcrumb
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
get breadCrumb() {
|
||||||
|
return this.intl.t('titles.new');
|
||||||
|
}
|
||||||
|
}
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
import { module, test } from 'qunit';
|
||||||
|
import { setupTest } from 'ember-qunit';
|
||||||
|
|
||||||
|
module(
|
||||||
|
'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups',
|
||||||
|
function (hooks) {
|
||||||
|
setupTest(hooks);
|
||||||
|
|
||||||
|
// TODO: Replace this with your real tests.
|
||||||
|
test('it exists', function (assert) {
|
||||||
|
let controller = this.owner.lookup(
|
||||||
|
'controller:scopes/scope/auth-methods/auth-method/managed-groups'
|
||||||
|
);
|
||||||
|
assert.ok(controller);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
import { module, test } from 'qunit';
|
||||||
|
import { setupTest } from 'ember-qunit';
|
||||||
|
|
||||||
|
module(
|
||||||
|
'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups/managed-group',
|
||||||
|
function (hooks) {
|
||||||
|
setupTest(hooks);
|
||||||
|
|
||||||
|
// TODO: Replace this with your real tests.
|
||||||
|
test('it exists', function (assert) {
|
||||||
|
let controller = this.owner.lookup(
|
||||||
|
'controller:scopes/scope/auth-methods/auth-method/managed-groups/managed-group'
|
||||||
|
);
|
||||||
|
assert.ok(controller);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
import { module, test } from 'qunit';
|
||||||
|
import { setupTest } from 'ember-qunit';
|
||||||
|
|
||||||
|
module(
|
||||||
|
'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups/new',
|
||||||
|
function (hooks) {
|
||||||
|
setupTest(hooks);
|
||||||
|
|
||||||
|
// TODO: Replace this with your real tests.
|
||||||
|
test('it exists', function (assert) {
|
||||||
|
let controller = this.owner.lookup(
|
||||||
|
'controller:scopes/scope/auth-methods/auth-method/managed-groups/new'
|
||||||
|
);
|
||||||
|
assert.ok(controller);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
Reference in new issue
Block a user