* refactor: 💡 move model hook to groups/index ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * feat: 🎸 add pagination to groups list view ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * feat: 🎸 add searching to groups ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * fix: 🐛 update scopeId to scope_id ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * test: 💍 clean up test refactor ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * refactor: 💡 update how groupsExisit is set ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * refactor: 💡 update mirage config for groups ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * test: 💍 fix failing groups create tests ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * refactor: 💡 add groups mirage config back ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * refactor: 💡 use translation string for Groups ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * refactor: 💡 update how groups are queried ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 * Update ui/admin/tests/acceptance/groups/list-test.js Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com> * refactor: 💡 update groups translation to title_plural ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12591 --------- Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
24 lines
495 B
JavaScript
24 lines
495 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 ScopesScopeGroupsRoute extends Route {
|
|
// =services
|
|
|
|
@service session;
|
|
@service router;
|
|
|
|
// =methods
|
|
|
|
/**
|
|
* If arriving here unauthenticated, redirect to index for further processing.
|
|
*/
|
|
beforeModel() {
|
|
if (!this.session.isAuthenticated) this.router.transitionTo('index');
|
|
}
|
|
}
|