* feat: 🎸 add pagination and filtering to sessions page ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 fix handling of null values in indexed-db-query ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 add method signatures where missing ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 address PR feedback ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * fix: 🐛 add override for table header color when sortable ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 remove poller and add manual refresh action ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 remove force_refresh from sessions route queries ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 add user getter to session model ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 remove logicalOperator value from queries ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 move action to controller from router ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 remove cleanValues from indexed-db-query ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 remove potential null values for user/target ids ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 add async/await back to cancelSession ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 update sessions route ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 use translation string for Sessions ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * test: 💍 fix controller test ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 add scope_id to filters for query ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 remove scope_id and recursive in sessions query ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587 * refactor: 💡 how user query to use global and org scope ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12587
22 lines
482 B
JavaScript
22 lines
482 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class ScopesScopeSessionsRoute extends Route {
|
|
// =services
|
|
|
|
@service session;
|
|
@service router;
|
|
|
|
/**
|
|
* If arriving here unauthenticated, redirect to index for further processing.
|
|
*/
|
|
beforeModel() {
|
|
if (!this.session.isAuthenticated) this.router.transitionTo('index');
|
|
}
|
|
}
|