refactor: 💡 Stop using recording store to use session-recording
This commit is contained in:
1 parent
d08ce29e5a
commit
c6bcfd32d5
4 files changed
+14
-15
No files matched your search
@@ -27,7 +27,7 @@ export default class ScopesScopeSessionRecordingsRoute extends Route {
|
|||||||
const scope = this.modelFor('scopes.scope');
|
const scope = this.modelFor('scopes.scope');
|
||||||
const { id: scope_id } = scope;
|
const { id: scope_id } = scope;
|
||||||
// if (this.can.can('list session-recording', scope, { collection: 'session-recordings' })) {
|
// if (this.can.can('list session-recording', scope, { collection: 'session-recordings' })) {
|
||||||
return this.store.query('recording', { scope_id });
|
return this.store.query('session-recording', { scope_id });
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,6 @@ export default class ScopesScopeSessionRecordingsSessionRecordingRoute extends R
|
|||||||
}
|
}
|
||||||
|
|
||||||
async model({ session_recording_id }) {
|
async model({ session_recording_id }) {
|
||||||
return this.store.findRecord('recording', session_recording_id);
|
return this.store.findRecord('session-recording', session_recording_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,16 +4,15 @@
|
|||||||
</page.header>
|
</page.header>
|
||||||
|
|
||||||
<page.body>
|
<page.body>
|
||||||
<LinkTo
|
{{#each @model as |recording|}}
|
||||||
@route='scopes.scope.session-recordings.session-recording'
|
<p>
|
||||||
@model={{@model.session_recording_id}}
|
<LinkTo
|
||||||
>
|
@route='scopes.scope.session-recordings.session-recording'
|
||||||
{{@model.session_recording_id}}
|
@model={{recording.id}}
|
||||||
</LinkTo>
|
>
|
||||||
<br /><br />
|
{{recording.id}}
|
||||||
<p>{{format-time-duration 3000}}</p>
|
</LinkTo>
|
||||||
<p>{{format-time-duration 2700000}}</p>
|
</p>
|
||||||
<p>{{format-time-duration 5000000}}</p>
|
{{/each}}
|
||||||
<p>{{format-time-duration 177800000}}</p>
|
|
||||||
</page.body>
|
</page.body>
|
||||||
</Rose::Layout::Page>
|
</Rose::Layout::Page>
|
||||||
@@ -11,10 +11,10 @@
|
|||||||
{{@model.id}}
|
{{@model.id}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{{#each @model.connections as |connection|}}
|
{{#each @model.connection_recordings as |connection|}}
|
||||||
<p>{{t 'resources.session-recording.connection.title'}}
|
<p>{{t 'resources.session-recording.connection.title'}}
|
||||||
{{connection.id}}</p>
|
{{connection.id}}</p>
|
||||||
{{#each connection.channels as |channel|}}
|
{{#each connection.channel_recordings as |channel|}}
|
||||||
<p>
|
<p>
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route='scopes.scope.session-recordings.session-recording.channels-by-connection.channel'
|
@route='scopes.scope.session-recordings.session-recording.channels-by-connection.channel'
|
||||||
|
|||||||
Reference in new issue
Block a user