feat: 🎸 add toolbar to desktop sessions
This commit is contained in:
1 parent
e25b36d50e
commit
3e87ea6c1b
2 files changed
+12
-9
No files matched your search
@@ -57,7 +57,7 @@ export default class ScopesScopeProjectsSessionsRoute extends Route {
|
||||
const { id: scope_id } = this.modelFor('scopes.scope');
|
||||
const { user_id } = this.session.data.authenticated;
|
||||
await this.store.query('target', { recursive: true, scope_id });
|
||||
return await this.resourceFilterStore.queryBy('session', { user: user_id , status }, {
|
||||
return await this.resourceFilterStore.queryBy('session', { user_id , status }, {
|
||||
recursive: true,
|
||||
scope_id
|
||||
});
|
||||
|
||||
@@ -12,7 +12,10 @@
|
||||
{{#if (feature-flag 'filter')}}
|
||||
{{#if
|
||||
(or
|
||||
@model (has-resource-filter-param-selections 'scopes.scope.projects.sessions')
|
||||
@model
|
||||
(has-resource-filter-param-selections
|
||||
'scopes.scope.projects.sessions'
|
||||
)
|
||||
)
|
||||
}}
|
||||
<Rose::Toolbar>
|
||||
@@ -47,7 +50,9 @@
|
||||
{{/with}}
|
||||
|
||||
{{#if
|
||||
(has-resource-filter-param-selections 'scopes.scope.projects.sessions')
|
||||
(has-resource-filter-param-selections
|
||||
'scopes.scope.projects.sessions'
|
||||
)
|
||||
}}
|
||||
<Rose::Button
|
||||
@style='inline-link-action'
|
||||
@@ -60,9 +65,8 @@
|
||||
</Rose::Toolbar>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if @model}}
|
||||
{{#if this.sorted}}
|
||||
|
||||
{{#if this.sorted}}
|
||||
<Rose::Table as |table|>
|
||||
<table.header as |header|>
|
||||
<header.row as |row|>
|
||||
@@ -138,7 +142,9 @@
|
||||
{{/each}}
|
||||
</table.body>
|
||||
</Rose::Table>
|
||||
{{else if (has-resource-filter-param-selections 'scopes.scope.projects.sessions')}}
|
||||
{{else if (has-resource-filter-param-selections
|
||||
'scopes.scope.projects.sessions'
|
||||
)}}
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message @title={{t 'titles.no-results'}} as |message|>
|
||||
<message.description>
|
||||
@@ -147,7 +153,6 @@
|
||||
</Rose::Message>
|
||||
</Rose::Layout::Centered>
|
||||
{{else}}
|
||||
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message
|
||||
@title={{t 'resources.session.messages.none-friendly.title'}}
|
||||
@@ -158,8 +163,6 @@
|
||||
</message.description>
|
||||
</Rose::Message>
|
||||
</Rose::Layout::Centered>
|
||||
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</page.body>
|
||||
|
||||
|
||||
Reference in new issue
Block a user