diff --git a/ui/admin/app/templates/scopes/scope/sessions/index.hbs b/ui/admin/app/templates/scopes/scope/sessions/index.hbs index 0e948fad7..0316e728d 100644 --- a/ui/admin/app/templates/scopes/scope/sessions/index.hbs +++ b/ui/admin/app/templates/scopes/scope/sessions/index.hbs @@ -13,59 +13,55 @@ - {{#if (feature-flag 'filter')}} - - - - {{#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 @model}} diff --git a/ui/admin/config/environment.js b/ui/admin/config/environment.js index 5041b4b98..000947a3f 100644 --- a/ui/admin/config/environment.js +++ b/ui/admin/config/environment.js @@ -8,7 +8,6 @@ const EDITION = process.env.EDITION || 'oss'; // Default edition is OSS const featureEditions = { oss: { search: false, - filter: true, 'static-credentials': false, byow: false, }, 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 9b63dd557..e392a8a49 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs @@ -9,109 +9,105 @@ - {{#if (feature-flag 'filter')}} - - - - {{#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 this.sorted}} diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs index e15d6b4d2..5c4eb372e 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs @@ -9,88 +9,86 @@ - {{#if (feature-flag 'filter')}} - {{#if - (or - @model - (has-resource-filter-selections - 'scopes.scope.projects.targets' 'project' - ) + {{#if + (or + @model + (has-resource-filter-selections + 'scopes.scope.projects.targets' 'project' ) - }} - - - - {{#with - (resource-filter 'scopes.scope.projects.targets' '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.targets' '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.targets' 'project' - ) - }} - {{t 'actions.clear-all-filters'}} - - {{/if}} -
-
+ {{#if + (has-resource-filter-selections + 'scopes.scope.projects.targets' 'project' + ) + }} + {{t 'actions.clear-all-filters'}} + + {{/if}} +
+
- - - + + + -
- {{/if}} + {{/if}} {{#if @model}}