Add breadcrumbs
This commit is contained in:
1 parent
c08c9cc50d
commit
0d47a37cdf
3 files changed
+33
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import Controller from '@ember/controller';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default class ScopesScopeSessionRecordingsController extends Controller {
|
||||
// =services
|
||||
|
||||
@service intl;
|
||||
|
||||
//= attributes
|
||||
/**
|
||||
* Translated breadcrumb
|
||||
*/
|
||||
get breadCrumb() {
|
||||
return this.intl.t('resources.session-recording.title_plural');
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
<Rose::Layout::Page as |page|>
|
||||
<page.breadcrumbs>
|
||||
<BreadCrumbs />
|
||||
</page.breadcrumbs>
|
||||
|
||||
<page.header>
|
||||
<h2>{{t 'resources.session-recording.title_plural'}}</h2>
|
||||
</page.header>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'admin/tests/helpers';
|
||||
|
||||
module('Unit | Controller | scopes/scope/session-recordings', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it exists', function (assert) {
|
||||
let controller = this.owner.lookup(
|
||||
'controller:scopes/scope/session-recordings'
|
||||
);
|
||||
assert.ok(controller);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user