refactor: 💡 more renaming
This commit is contained in:
15 files changed
+35
-38
No files matched your search
@@ -4,7 +4,7 @@ import { action } from '@ember/object';
|
||||
import loading from 'ember-loading/decorator';
|
||||
import { confirm } from 'core/decorators/confirm';
|
||||
import { notifySuccess, notifyError } from 'core/decorators/notify';
|
||||
import { resourceFilterParam } from 'core/decorators/route-resource-filter';
|
||||
import { resourceFilter } from 'core/decorators/resource-filter';
|
||||
|
||||
export default class ScopesScopeAuthMethodsRoute extends Route {
|
||||
// =services
|
||||
@@ -17,7 +17,7 @@ export default class ScopesScopeAuthMethodsRoute extends Route {
|
||||
|
||||
// =attributes
|
||||
|
||||
@resourceFilterParam({ allowed: ['password', 'oidc'] }) type;
|
||||
@resourceFilter({ allowed: ['password', 'oidc'] }) type;
|
||||
|
||||
// =methods
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { task, timeout } from 'ember-concurrency';
|
||||
import { A } from '@ember/array';
|
||||
import { notifySuccess, notifyError } from 'core/decorators/notify';
|
||||
import config from '../../../config/environment';
|
||||
import { resourceFilterParam } from 'core/decorators/route-resource-filter';
|
||||
import { resourceFilter } from 'core/decorators/resource-filter';
|
||||
|
||||
const POLL_TIMEOUT_SECONDS = config.sessionPollingTimeoutSeconds;
|
||||
|
||||
@@ -21,7 +21,10 @@ export default class ScopesScopeSessionsRoute extends Route {
|
||||
|
||||
// =attributes
|
||||
|
||||
@resourceFilterParam(['active', 'pending', 'canceling', 'terminated'], ['active','pending', 'canceling']) status;
|
||||
@resourceFilter({
|
||||
allowed: ['active', 'pending', 'canceling', 'terminated'],
|
||||
defaultValue: ['active','pending', 'canceling']
|
||||
}) status;
|
||||
|
||||
/**
|
||||
* A simple Ember Concurrency-based polling task that refreshes the route
|
||||
|
||||
@@ -39,15 +39,13 @@
|
||||
{{#if
|
||||
(or
|
||||
@model
|
||||
(has-route-resource-filter-selections
|
||||
'scopes.scope.auth-methods' 'type'
|
||||
)
|
||||
(has-resource-filter-selections 'scopes.scope.auth-methods' 'type')
|
||||
)
|
||||
}}
|
||||
<Rose::Toolbar>
|
||||
<Rose::Form as |form|>
|
||||
{{#with
|
||||
(route-resource-filter 'scopes.scope.auth-methods' 'type')
|
||||
(resource-filter 'scopes.scope.auth-methods' 'type')
|
||||
as |filter|
|
||||
}}
|
||||
<Rose::Dropdown
|
||||
@@ -76,9 +74,7 @@
|
||||
{{/with}}
|
||||
|
||||
{{#if
|
||||
(has-route-resource-filter-selections
|
||||
'scopes.scope.auth-methods' 'type'
|
||||
)
|
||||
(has-resource-filter-selections 'scopes.scope.auth-methods' 'type')
|
||||
}}
|
||||
<Rose::Button
|
||||
@style='inline-link-action'
|
||||
@@ -211,7 +207,7 @@
|
||||
</table.body>
|
||||
</Rose::Table>
|
||||
|
||||
{{else if (has-route-resource-filter-selections
|
||||
{{else if (has-resource-filter-selections
|
||||
'scopes.scope.auth-methods' 'type'
|
||||
)}}
|
||||
|
||||
|
||||
@@ -16,14 +16,13 @@
|
||||
{{#if (feature-flag 'filter')}}
|
||||
{{#if
|
||||
(or
|
||||
@model
|
||||
(has-route-resource-filter-selections 'scopes.scope.sessions' 'type')
|
||||
@model (has-resource-filter-selections 'scopes.scope.sessions' 'type')
|
||||
)
|
||||
}}
|
||||
<Rose::Toolbar>
|
||||
<Rose::Form as |form|>
|
||||
{{#with
|
||||
(route-resource-filter 'scopes.scope.sessions' 'status')
|
||||
(resource-filter 'scopes.scope.sessions' 'status')
|
||||
as |filter|
|
||||
}}
|
||||
<Rose::Dropdown
|
||||
@@ -52,9 +51,7 @@
|
||||
{{/with}}
|
||||
|
||||
{{#if
|
||||
(has-route-resource-filter-selections
|
||||
'scopes.scope.sessions' 'type'
|
||||
)
|
||||
(has-resource-filter-selections 'scopes.scope.sessions' 'type')
|
||||
}}
|
||||
<Rose::Button
|
||||
@style='inline-link-action'
|
||||
@@ -139,9 +136,7 @@
|
||||
</table.body>
|
||||
</Rose::Table>
|
||||
|
||||
{{else if (has-route-resource-filter-selections
|
||||
'scopes.scope.sessions' 'type'
|
||||
)}}
|
||||
{{else if (has-resource-filter-selections 'scopes.scope.sessions' 'type')}}
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message @title={{t 'titles.no-results'}} as |message|>
|
||||
<message.description>
|
||||
|
||||
Reference in new issue
Block a user