diff --git a/ui/admin/app/templates/scopes/scope/sessions/index.hbs b/ui/admin/app/templates/scopes/scope/sessions/index.hbs index d16f8c035..0e948fad7 100644 --- a/ui/admin/app/templates/scopes/scope/sessions/index.hbs +++ b/ui/admin/app/templates/scopes/scope/sessions/index.hbs @@ -14,65 +14,57 @@ {{#if (feature-flag 'filter')}} - {{#if - (or - @model - (has-resource-filter-selections 'scopes.scope.sessions' 'status') - ) - }} - - - - {{#with - (resource-filter 'scopes.scope.sessions' 'status') - as |filter| - }} - + + + {{#with + (resource-filter 'scopes.scope.sessions' 'status') + as |filter| + }} + + - - - - - - - {{/with}} + + + + + + {{/with}} - {{#if - (has-resource-filter-selections - 'scopes.scope.sessions' 'status' - ) - }} - {{t 'actions.clear-all-filters'}} - - {{/if}} - - + {{#if + (has-resource-filter-selections 'scopes.scope.sessions' 'status') + }} + {{t 'actions.clear-all-filters'}} + + {{/if}} + + - - - + + + + + - - {{/if}} {{/if}} {{#if @model}} diff --git a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs index caeb0c36f..9b63dd557 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs @@ -10,116 +10,107 @@ {{#if (feature-flag 'filter')}} - {{#if - (or - @model - (has-resource-filter-selections - 'scopes.scope.projects.sessions' 'status' 'project' - ) - ) - }} - - - - {{#with - (resource-filter 'scopes.scope.projects.sessions' 'status') - as |filter| - }} - + + + {{#with + (resource-filter 'scopes.scope.projects.sessions' 'status') + as |filter| + }} + + - - - - - - - {{/with}} + + + + + + {{/with}} - {{#with - (resource-filter 'scopes.scope.projects.sessions' 'project') - as |filter| - }} - -
    - {{#with - (group-by filter.allowedValues 'scopeModel') - as |groups| - }} - {{#each groups as |groupedItems|}} -
  • - - - {{groupedItems.key.displayName}} - -
      - -
    • - - - -
    • -
      -
    -
  • - {{/each}} - {{/with}} -
-
- {{/with}} + {{#with + (resource-filter 'scopes.scope.projects.sessions' 'project') + as |filter| + }} + +
    + {{#with + (group-by filter.allowedValues 'scopeModel') + as |groups| + }} + {{#each groups as |groupedItems|}} +
  • + + + {{groupedItems.key.displayName}} + +
      + +
    • + + + +
    • +
      +
    +
  • + {{/each}} + {{/with}} +
+
+ {{/with}} - {{#if - (has-resource-filter-selections - 'scopes.scope.projects.sessions' 'status' 'project' - ) - }} - {{t 'actions.clear-all-filters'}} - - {{/if}} -
-
+ {{#if + (has-resource-filter-selections + 'scopes.scope.projects.sessions' 'status' 'project' + ) + }} + {{t 'actions.clear-all-filters'}} + + {{/if}} + + - - - + + + -
- {{/if}} + {{/if}} {{#if this.sorted}}