Add channels-by-connection to the breadcrumbs

This commit is contained in:
Carlos Alcaide committed 2023-03-22 15:25:46 -07:00
1 parent 9bf03b0fba
commit ca5b9f1d24
6 files changed
+39 -3

No files matched your search

@@ -217,6 +217,8 @@ session-recording:
connection:
title: Connection
title_plural: Connections
channels-by-connection:
title: Channels by connection
channel:
title: Channel
title_plural: Channels
@@ -0,0 +1,18 @@
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionController extends Controller {
// =services
@service intl;
// =attributes
/**
* Translated breadcrumb
*/
get breadCrumb() {
return this.intl.t(
'resources.session-recording.channels-by-connection.title'
);
}
}
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'admin/tests/helpers';
module('Unit | Controller | scopes/scope/session-recordings', function (hooks) {
module('Unit | Controller | session-recordings', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
@@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'admin/tests/helpers';
module(
'Unit | Controller | scopes/scope/session-recordings/session-recording',
'Unit | Controller | session-recordings | session-recording',
function (hooks) {
setupTest(hooks);
@@ -0,0 +1,16 @@
import { module, test } from 'qunit';
import { setupTest } from 'admin/tests/helpers';
module(
'Unit | Controller | session-recordings | session-recording | channels-by-connection',
function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let controller = this.owner.lookup(
'controller:scopes/scope/session-recordings/session-recording/channels-by-connection'
);
assert.ok(controller);
});
}
);
@@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'admin/tests/helpers';
module(
'Unit | Controller | scopes/scope/session-recordings/session-recording/channels-by-connection/channel',
'Unit | Controller | session-recordings | session-recording | channels-by-connection | channel',
function (hooks) {
setupTest(hooks);