diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 1dba1c376..58874b299 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -828,6 +828,8 @@ scope: managed-group: title: Managed Group title_plural: Managed Groups + titles: + new: New Managed Group description: A managed group represents a collection of accounts. actions: delete: Delete Managed Group @@ -848,8 +850,9 @@ managed-group: help: The list of groups that this Managed Group belongs to. worker: title: Worker - title_pki: New PKI Worker title_plural: Workers + titles: + new: New PKI Worker description: Workers are the server components that perform the session handling. actions: register: Register Worker diff --git a/ui/admin/app/components/bread-crumbs.hbs b/ui/admin/app/components/bread-crumbs.hbs deleted file mode 100644 index 5aaa0fbdb..000000000 --- a/ui/admin/app/components/bread-crumbs.hbs +++ /dev/null @@ -1,42 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: MPL-2.0 -}} - - - - {{#if this.scope.org}} - {{#unless this.scope.org.isGlobal}} - {{#if this.session.data.authenticated.isGlobal}} - - {{t 'resources.org.title_plural'}} - - - {{this.scope.org.displayName}} - - {{/if}} - {{/unless}} - {{/if}} - - {{#if this.scope.project}} - - {{t 'resources.project.title_plural'}} - - - {{this.scope.project.displayName}} - - {{/if}} - - {{#each this.breadCrumbs as |crumb|}} - {{#if crumb.model}} - - {{crumb.label}} - - {{else}} - - {{crumb.label}} - - {{/if}} - {{/each}} - - \ No newline at end of file diff --git a/ui/admin/app/components/bread-crumbs.js b/ui/admin/app/components/bread-crumbs.js deleted file mode 100644 index 1f2ac7cea..000000000 --- a/ui/admin/app/components/bread-crumbs.js +++ /dev/null @@ -1,118 +0,0 @@ -import Component from '@glimmer/component'; -import EmberObject, { computed, get } from '@ember/object'; -import { inject as service } from '@ember/service'; -import { isBlank, isPresent } from '@ember/utils'; -import { A } from '@ember/array'; - -// This component copies and modifies source from ember-breadcrumbs 0.2.3, -// updating it for Ember v4 compatibility. - -// The original copyright is below. - -/* -The MIT License (MIT) - -Copyright (c) 2014-2019 Chris Farber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -export default class BreadcrumbsComponent extends Component { - // =services - - @service session; - @service scope; - @service router; - - // =properties - - /* eslint-disable-next-line ember/require-computed-property-dependencies */ - @computed('router.currentRouteName') - get routeInfos() { - /* eslint-disable-next-line ember/no-private-routing-service */ - return this.router._router._routerMicrolib.currentRouteInfos; - } - - /* - For the pathNames and controllers properties, we must be careful not to NOT - specify the properties of the route in our dependent keys. - - Observing the controller property of the route causes some serious problems: - https://github.com/chrisfarber/ember-breadcrumbs/issues/21 - */ - - @computed('routeInfos.[]') - get pathNames() { - return this.routeInfos.map(function (routeInfo) { - return routeInfo.name; - }); - } - - @computed('routeInfos.[]') - get controllers() { - return this.routeInfos.map(function (routeInfo) { - var route = routeInfo.route || routeInfo.handler; - return route.controller; - }); - } - - @computed( - 'controllers.@each.{breadCrumbs,breadCrumb,breadCrumbPath,breadCrumbModel}', - 'pathNames.[]' - ) - get breadCrumbs() { - var controllers = this.controllers; - var defaultPaths = this.pathNames; - var breadCrumbs = A([]); - - controllers.forEach(function (controller, index) { - var crumbs = controller.breadCrumbs || A([]); - var singleCrumb = controller.breadCrumb; - - if (!isBlank(singleCrumb)) { - crumbs.push({ - label: singleCrumb, - path: controller.breadCrumbPath, - model: controller.breadCrumbModel, - }); - } - - crumbs.forEach(function (crumb) { - breadCrumbs.addObject( - EmberObject.create({ - label: crumb.label, - path: crumb.path || defaultPaths[index], - model: crumb.model, - linkable: isPresent(crumb.linkable) - ? crumb.linkable - : crumb.path !== false, - isCurrent: false, - }) - ); - }); - }); - - var deepestCrumb = get(breadCrumbs, 'lastObject'); - if (deepestCrumb) { - deepestCrumb.isCurrent = true; - } - - return breadCrumbs; - } -} diff --git a/ui/admin/app/components/breadcrumbs/container/index.hbs b/ui/admin/app/components/breadcrumbs/container/index.hbs new file mode 100644 index 000000000..69a28386f --- /dev/null +++ b/ui/admin/app/components/breadcrumbs/container/index.hbs @@ -0,0 +1,7 @@ + + {{yield}} + \ No newline at end of file diff --git a/ui/admin/app/components/breadcrumbs/container/index.js b/ui/admin/app/components/breadcrumbs/container/index.js new file mode 100644 index 000000000..a25b42d80 --- /dev/null +++ b/ui/admin/app/components/breadcrumbs/container/index.js @@ -0,0 +1,32 @@ +import Component from '@glimmer/component'; +import { inject as service } from '@ember/service'; +import { action } from '@ember/object'; + +/* + The `containers` property from the `breadcrumbsService` is tracked + so registering or unregistering a container will cause the DOM + to re-render a container with the correct breadcrumbs. +*/ + +export default class BreadcrumbsContainerComponent extends Component { + @service('breadcrumbs') breadcrumbsService; + + container = null; + + @action + registerContainer(element) { + // A child `ol` is rendered in the Hds::Breadcrumb container and this is + // the element that the in-element helper should drop breadcrumbs into. + this.container = { + element: element.querySelector('ol'), + }; + + this.breadcrumbsService.registerContainer(this.container); + } + + willDestroy() { + super.willDestroy(...arguments); + + this.breadcrumbsService.unregisterContainer(this.container); + } +} diff --git a/ui/admin/app/components/breadcrumbs/item/index.hbs b/ui/admin/app/components/breadcrumbs/item/index.hbs new file mode 100644 index 000000000..5c41cb5e1 --- /dev/null +++ b/ui/admin/app/components/breadcrumbs/item/index.hbs @@ -0,0 +1,16 @@ +{{#each this.breadcrumbsService.containers as |container|}} + {{#in-element container.element insertBefore=null}} + + {{/in-element}} +{{/each}} \ No newline at end of file diff --git a/ui/admin/app/components/breadcrumbs/item/index.js b/ui/admin/app/components/breadcrumbs/item/index.js new file mode 100644 index 000000000..784ae5bbd --- /dev/null +++ b/ui/admin/app/components/breadcrumbs/item/index.js @@ -0,0 +1,26 @@ +import Component from '@glimmer/component'; +import { inject as service } from '@ember/service'; +import { action } from '@ember/object'; +import { tracked } from '@glimmer/tracking'; + +/* + `BreadcrumbsItem` inserts the crumbs to an existing container. + For our purposes, there will always be at most one container. +*/ + +export default class BreadcrumbsItemComponent extends Component { + @service('breadcrumbs') breadcrumbsService; + + @tracked element = null; + + @action + registerSelf(element) { + this.element = element; + } + + get current() { + const crumbs = this.breadcrumbsService.containers[0].element.children; + const lastCrumb = crumbs[crumbs.length - 1]; + return lastCrumb.isEqualNode(this.element); + } +} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods.js b/ui/admin/app/controllers/scopes/scope/auth-methods.js deleted file mode 100644 index c17cfe273..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated auth-methods breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.auth-method.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method.js deleted file mode 100644 index 087917e5b..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeAuthMethodsAuthMethodController extends Controller { - // =attributes - - /** - * An auth-method breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js deleted file mode 100644 index a4725071c..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsAuthMethodAccountsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated accounts breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.account.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js deleted file mode 100644 index 7ef7a407e..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountController extends Controller { - // =attributes - - /** - * An account breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js deleted file mode 100644 index d0bba95a8..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSetPasswordController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated users breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('actions.set-password'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js deleted file mode 100644 index 01e91a96f..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsAuthMethodAccountsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated new account breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.account.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups.js deleted file mode 100644 index ae5920602..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated managed groups breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.managed-group.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.js deleted file mode 100644 index bf3b6c022..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupController extends Controller { - // =attributes - - /** - * A managed group breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.js deleted file mode 100644 index f084b9935..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupMembersController extends Controller { - // =services - - @service intl; - - // =attributes - /** - * Translated new managed group breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.managed-group.member.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/new.js b/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/new.js deleted file mode 100644 index db642e79c..000000000 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/auth-method/managed-groups/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated new account breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/new.js b/ui/admin/app/controllers/scopes/scope/auth-methods/new.js index e7bc2891a..bdc0330cf 100644 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/new.js +++ b/ui/admin/app/controllers/scopes/scope/auth-methods/new.js @@ -4,22 +4,11 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeAuthMethodsNewController extends Controller { // =services - @service intl; - // =attributes queryParams = ['type']; - - /** - * Translated new auth-method breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.auth-method.titles.new'); - } } diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores.js b/ui/admin/app/controllers/scopes/scope/credential-stores.js deleted file mode 100644 index 47adb77ba..000000000 --- a/ui/admin/app/controllers/scopes/scope/credential-stores.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeCredentialStoresController extends Controller { - // =services - - @service intl; - - // = attributes - /** - * Translated breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.credential-store.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store.js deleted file mode 100644 index ad2fad8a2..000000000 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeCredentialStoresCredentialStoreController extends Controller { - // =attributes - - /** - * A credential store breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries.js deleted file mode 100644 index bf10b7ce8..000000000 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrariesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated credential libraries breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.credential-library.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.js deleted file mode 100644 index 6700d459a..000000000 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrariesCredentialLibraryController extends Controller { - // =attributes - - /** - * A model breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/new.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/new.js index 3885c4ca6..7d0188606 100644 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/new.js +++ b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credential-libraries/new.js @@ -4,21 +4,10 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrariesNewController extends Controller { // =services - @service intl; - // =attributes queryParams = ['type']; - - /** - * Translated new credential libraries breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.credential-library.titles.new'); - } } diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials.js deleted file mode 100644 index 9a70f080f..000000000 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeCredentialStoresCredentialStoreCredentialsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated credential breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.credential.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/credential.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/credential.js deleted file mode 100644 index e07172ada..000000000 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/credential.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeCredentialStoresCredentialStoreCredentialsCredentialController extends Controller { - // =attributes - - /** - * A model breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/new.js b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/new.js index c6f15f31f..49207e19e 100644 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/new.js +++ b/ui/admin/app/controllers/scopes/scope/credential-stores/credential-store/credentials/new.js @@ -4,22 +4,11 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeCredentialStoresCredentialStoreCredentialsNewController extends Controller { // =services - @service intl; - // =attributes queryParams = ['type']; - - /** - * Translated new credentials breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.credential.titles.new'); - } } diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/new.js b/ui/admin/app/controllers/scopes/scope/credential-stores/new.js index 481f5e561..ee9c6f0ae 100644 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/new.js +++ b/ui/admin/app/controllers/scopes/scope/credential-stores/new.js @@ -4,20 +4,10 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeCredentialStoresNewController extends Controller { // =services - @service intl; - // =attributes queryParams = ['type']; - /** - * Breadcrumb for new route - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.credential-store.titles.new'); - } } diff --git a/ui/admin/app/controllers/scopes/scope/groups.js b/ui/admin/app/controllers/scopes/scope/groups.js deleted file mode 100644 index 773aa4a8b..000000000 --- a/ui/admin/app/controllers/scopes/scope/groups.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeGroupsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated groups breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.group.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/groups/group.js b/ui/admin/app/controllers/scopes/scope/groups/group.js deleted file mode 100644 index 77cec2722..000000000 --- a/ui/admin/app/controllers/scopes/scope/groups/group.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeGroupsGroupController extends Controller { - // =attributes - - /** - * A group breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/groups/group/add-members.js b/ui/admin/app/controllers/scopes/scope/groups/group/add-members.js index 649bcdec2..d156d0cc8 100644 --- a/ui/admin/app/controllers/scopes/scope/groups/group/add-members.js +++ b/ui/admin/app/controllers/scopes/scope/groups/group/add-members.js @@ -4,23 +4,12 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeGroupsGroupAddMembersController extends Controller { // =services - @service intl; - // =attributes - /** - * Translated new group breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.group.messages.add-members.title'); - } - /** * Returns a flat array of scopes, sorted and "grouped by" parent scope, * beginning with global. diff --git a/ui/admin/app/controllers/scopes/scope/groups/group/members.js b/ui/admin/app/controllers/scopes/scope/groups/group/members.js deleted file mode 100644 index 7a74b6ca3..000000000 --- a/ui/admin/app/controllers/scopes/scope/groups/group/members.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeGroupsGroupMembersController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated users breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.group.messages.members.title'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/groups/new.js b/ui/admin/app/controllers/scopes/scope/groups/new.js deleted file mode 100644 index fe5a3932f..000000000 --- a/ui/admin/app/controllers/scopes/scope/groups/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeGroupsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated new group breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.group.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs.js b/ui/admin/app/controllers/scopes/scope/host-catalogs.js deleted file mode 100644 index ea79e8aa3..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-catalog.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog.js deleted file mode 100644 index 62c38e0a4..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeHostCatalogsHostCatalogController extends Controller { - // =attributes - - /** - * A role breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets.js deleted file mode 100644 index 9c4f9fd5c..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-set.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js deleted file mode 100644 index da7451738..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetController extends Controller { - // =attributes - - /** - * A role breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js deleted file mode 100644 index 3ad8acee2..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetAddHostsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-set.actions.add-hosts'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js deleted file mode 100644 index 6ddc2ee68..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetCreateAndAddHostController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-set.actions.create-and-add-host'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.js deleted file mode 100644 index 8ba02679f..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetHostsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.js deleted file mode 100644 index f8a9328d2..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetHostsHostController extends Controller { - // =attributes - - /** - * A role breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/new.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/new.js deleted file mode 100644 index 760985b2f..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostSetsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-set.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts.js deleted file mode 100644 index 3319643aa..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/host.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/host.js deleted file mode 100644 index ae7e6d6cc..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/host.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeHostCatalogsHostCatalogHostsHostController extends Controller { - // =attributes - - /** - * A role breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new.js deleted file mode 100644 index 65f30c1e8..000000000 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeHostCatalogsHostCatalogHostsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js index d6a8ae46d..1df18ca12 100644 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js +++ b/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js @@ -4,22 +4,11 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeHostCatalogsNewController extends Controller { // =services - @service intl; - // =attributes queryParams = ['type']; - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-catalog.titles.new'); - } } diff --git a/ui/admin/app/controllers/scopes/scope/roles.js b/ui/admin/app/controllers/scopes/scope/roles.js deleted file mode 100644 index dff51ba8b..000000000 --- a/ui/admin/app/controllers/scopes/scope/roles.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeRolesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.role.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/roles/new.js b/ui/admin/app/controllers/scopes/scope/roles/new.js deleted file mode 100644 index a2b40b69d..000000000 --- a/ui/admin/app/controllers/scopes/scope/roles/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeRolesNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated new role breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.role.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/roles/role.js b/ui/admin/app/controllers/scopes/scope/roles/role.js deleted file mode 100644 index 458bbef32..000000000 --- a/ui/admin/app/controllers/scopes/scope/roles/role.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeRolesRoleController extends Controller { - // =attributes - - /** - * A role breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/roles/role/add-principals.js b/ui/admin/app/controllers/scopes/scope/roles/role/add-principals.js index a7681f1e7..d1f59e215 100644 --- a/ui/admin/app/controllers/scopes/scope/roles/role/add-principals.js +++ b/ui/admin/app/controllers/scopes/scope/roles/role/add-principals.js @@ -4,23 +4,12 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeRolesRoleAddPrincipalsController extends Controller { // =services - @service intl; - // =attributes - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.role.principal.actions.add-principals'); - } - /** * Returns a flat array of scopes, sorted and "grouped by" parent scope, * beginning with global. diff --git a/ui/admin/app/controllers/scopes/scope/roles/role/grants.js b/ui/admin/app/controllers/scopes/scope/roles/role/grants.js deleted file mode 100644 index f4c82a9dc..000000000 --- a/ui/admin/app/controllers/scopes/scope/roles/role/grants.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeRolesRoleGrantsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated users breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.role.grant.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/roles/role/principals.js b/ui/admin/app/controllers/scopes/scope/roles/role/principals.js deleted file mode 100644 index 17c56d186..000000000 --- a/ui/admin/app/controllers/scopes/scope/roles/role/principals.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeRolesRolePrincipalsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated users breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.role.principal.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/scopes.js b/ui/admin/app/controllers/scopes/scope/scopes.js deleted file mode 100644 index b257e8a7e..000000000 --- a/ui/admin/app/controllers/scopes/scope/scopes.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; -import { computed } from '@ember/object'; - -export default class ScopesScopeScopesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - @computed('intl', 'model.currentScope.{isGlobal,isOrg}') - get breadCrumb() { - if (this.model.currentScope.isGlobal) { - return this.intl.t('resources.org.title_plural'); - } - /* istanbul ignore else */ - if (this.model.currentScope.isOrg) { - return this.intl.t('resources.project.title_plural'); - } - /* istanbul ignore next */ - return null; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/scopes/new.js b/ui/admin/app/controllers/scopes/scope/scopes/new.js deleted file mode 100644 index 70ab7000c..000000000 --- a/ui/admin/app/controllers/scopes/scope/scopes/new.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; -import { computed } from '@ember/object'; - -export default class ScopesScopeScopesNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - @computed('intl', 'model.{currentScope,isOrg,isProject}') - get breadCrumb() { - if (this.model.isOrg) { - return this.intl.t('resources.org.titles.new'); - } - /* istanbul ignore else */ - if (this.model.isProject) { - return this.intl.t('resources.project.titles.new'); - } - /* istanbul ignore next */ - return null; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/session-recordings.js b/ui/admin/app/controllers/scopes/scope/session-recordings.js deleted file mode 100644 index 4e6612ccc..000000000 --- a/ui/admin/app/controllers/scopes/scope/session-recordings.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeSessionRecordingsController extends Controller { - // =services - - @service intl; - - //= attributes - /** - * Translated breadcrumb - */ - get breadCrumb() { - return this.intl.t('resources.session-recording.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording.js b/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording.js deleted file mode 100644 index ef9eb1bf5..000000000 --- a/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeSessionRecordingsSessionRecordingController extends Controller { - // =services - - @service intl; - - /** - * Session recording breadcrumb - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection.js b/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection.js deleted file mode 100644 index 9d7319063..000000000 --- a/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionController extends Controller { - // =services - - @service intl; - - // =attributes - /** - * Translated breadcrumb - */ - get breadCrumb() { - return this.intl.t( - 'resources.session-recording.channels-by-connection.title' - ); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.js b/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.js deleted file mode 100644 index d1102249f..000000000 --- a/ui/admin/app/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; -import { reverseIndexedDisplayName } from 'core/helpers/reverse-indexed-display-name'; - -export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConnectionChannelController extends Controller { - // =services - - @service intl; - - /** - * Session recording channel breadcrumb - */ - get breadCrumb() { - return reverseIndexedDisplayName( - this.intl, - 'resources.session-recording.channel.title_index', - this.model.channelRecording.connection_recording.channel_recordings, - this.model.channelRecording - ); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/sessions.js b/ui/admin/app/controllers/scopes/scope/sessions.js deleted file mode 100644 index eb596faf6..000000000 --- a/ui/admin/app/controllers/scopes/scope/sessions.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeSessionsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.session.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/storage-buckets.js b/ui/admin/app/controllers/scopes/scope/storage-buckets.js deleted file mode 100644 index 249913c40..000000000 --- a/ui/admin/app/controllers/scopes/scope/storage-buckets.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeStorageBucketsController extends Controller { - // =services - - @service intl; - - // = attributes - /** - * Translated breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.storage-bucket.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/storage-buckets/new.js b/ui/admin/app/controllers/scopes/scope/storage-buckets/new.js deleted file mode 100644 index 40f8fcfdc..000000000 --- a/ui/admin/app/controllers/scopes/scope/storage-buckets/new.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeStorageBucketsNewController extends Controller { - // =services - - @service intl; - - /** - * Breadcrumb for new route - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.storage-bucket.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/storage-buckets/storage-bucket.js b/ui/admin/app/controllers/scopes/scope/storage-buckets/storage-bucket.js deleted file mode 100644 index 7f26b0f87..000000000 --- a/ui/admin/app/controllers/scopes/scope/storage-buckets/storage-bucket.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeStorageBucketsStorageBucketController extends Controller { - // =attributes - /** - * A storage-bucket breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets.js b/ui/admin/app/controllers/scopes/scope/targets.js deleted file mode 100644 index 7234aa649..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeTargetsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.target.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/new.js b/ui/admin/app/controllers/scopes/scope/targets/new.js index 646394dd6..1fe59cbd1 100644 --- a/ui/admin/app/controllers/scopes/scope/targets/new.js +++ b/ui/admin/app/controllers/scopes/scope/targets/new.js @@ -4,24 +4,11 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeTargetsNewController extends Controller { // =services - @service intl; - // =attributes queryParams = ['type']; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.target.titles.new'); - } } diff --git a/ui/admin/app/controllers/scopes/scope/targets/target.js b/ui/admin/app/controllers/scopes/scope/targets/target.js deleted file mode 100644 index f158753e5..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeTargetsTargetController extends Controller { - // =attributes - - /** - * An user breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/add-brokered-credential-sources.js b/ui/admin/app/controllers/scopes/scope/targets/target/add-brokered-credential-sources.js index 51b3c6ec8..72307adf2 100644 --- a/ui/admin/app/controllers/scopes/scope/targets/target/add-brokered-credential-sources.js +++ b/ui/admin/app/controllers/scopes/scope/targets/target/add-brokered-credential-sources.js @@ -4,13 +4,10 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeTargetsTargetAddBrokeredCredentialSourcesController extends Controller { // =services - @service intl; - // =attributes /** @@ -41,14 +38,4 @@ export default class ScopesScopeTargetsTargetAddBrokeredCredentialSourcesControl ); return [...notAddedCredentialLibraries, ...notAddedCredentials]; } - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t( - 'resources.target.actions.add-brokered-credential-sources' - ); - } } diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/add-host-sources.js b/ui/admin/app/controllers/scopes/scope/targets/target/add-host-sources.js deleted file mode 100644 index e073f678c..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target/add-host-sources.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeTargetsTargetAddHostSourcesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.target.actions.add-host-sources'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/add-injected-application-credential-sources.js b/ui/admin/app/controllers/scopes/scope/targets/target/add-injected-application-credential-sources.js index 8a37dbc5c..a5b7cb859 100644 --- a/ui/admin/app/controllers/scopes/scope/targets/target/add-injected-application-credential-sources.js +++ b/ui/admin/app/controllers/scopes/scope/targets/target/add-injected-application-credential-sources.js @@ -4,13 +4,10 @@ */ import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; export default class ScopesScopeTargetsTargetAddInjectedApplicationCredentialSourcesController extends Controller { // =services - @service intl; - // =attributes /** @@ -40,14 +37,4 @@ export default class ScopesScopeTargetsTargetAddInjectedApplicationCredentialSou ); return [...notAddedCredentialLibraries, ...notAddedCredentials]; } - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t( - 'resources.target.actions.add-injected-application-credential-sources' - ); - } } diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/brokered-credential-sources.js b/ui/admin/app/controllers/scopes/scope/targets/target/brokered-credential-sources.js deleted file mode 100644 index 300b93486..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target/brokered-credential-sources.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeTargetsTargetBrokeredCredentialSourcesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated credential library breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t( - 'resources.target.brokered-credential-source.title_plural' - ); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.js b/ui/admin/app/controllers/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.js deleted file mode 100644 index 61651c715..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeTargetsTargetEnableSessionRecordingCreateStorageBucketController extends Controller { - // =services -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/enable-session-recording/index.js b/ui/admin/app/controllers/scopes/scope/targets/target/enable-session-recording/index.js deleted file mode 100644 index d631964aa..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target/enable-session-recording/index.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeTargetsTargetEnableSessionRecordingController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated enable session recording breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.target.enable-session-recording.title'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/host-sources.js b/ui/admin/app/controllers/scopes/scope/targets/target/host-sources.js deleted file mode 100644 index 96fb9dc2a..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target/host-sources.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeTargetsTargetHostSourcesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated roles breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.target.host-source.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/targets/target/injected-application-credential-sources.js b/ui/admin/app/controllers/scopes/scope/targets/target/injected-application-credential-sources.js deleted file mode 100644 index 322696fb7..000000000 --- a/ui/admin/app/controllers/scopes/scope/targets/target/injected-application-credential-sources.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeTargetsTargetInjectedApplicationCredentialSourcesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated credential library breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t( - 'resources.target.injected-application-credential-source.title_plural' - ); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/users.js b/ui/admin/app/controllers/scopes/scope/users.js deleted file mode 100644 index 2d4bf7008..000000000 --- a/ui/admin/app/controllers/scopes/scope/users.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeUsersController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated users breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.user.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/users/new.js b/ui/admin/app/controllers/scopes/scope/users/new.js deleted file mode 100644 index 45445ed0e..000000000 --- a/ui/admin/app/controllers/scopes/scope/users/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeUsersNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated new user breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.user.titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/users/user.js b/ui/admin/app/controllers/scopes/scope/users/user.js deleted file mode 100644 index 757c2ab9e..000000000 --- a/ui/admin/app/controllers/scopes/scope/users/user.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeUsersUserController extends Controller { - // =attributes - - /** - * An user breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/controllers/scopes/scope/users/user/accounts.js b/ui/admin/app/controllers/scopes/scope/users/user/accounts.js deleted file mode 100644 index dc57e930c..000000000 --- a/ui/admin/app/controllers/scopes/scope/users/user/accounts.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeUsersUserAccountsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated users breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.account.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/users/user/add-accounts.js b/ui/admin/app/controllers/scopes/scope/users/user/add-accounts.js deleted file mode 100644 index 0ee26a5da..000000000 --- a/ui/admin/app/controllers/scopes/scope/users/user/add-accounts.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeUsersUserAddAccountsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.user.messages.add-accounts.title'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/workers.js b/ui/admin/app/controllers/scopes/scope/workers.js deleted file mode 100644 index a69c4f247..000000000 --- a/ui/admin/app/controllers/scopes/scope/workers.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeWorkersController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated workers breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.worker.title_plural'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/workers/new.js b/ui/admin/app/controllers/scopes/scope/workers/new.js deleted file mode 100644 index 6ec2a61af..000000000 --- a/ui/admin/app/controllers/scopes/scope/workers/new.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class ScopesScopeWorkersNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * Translated new worker breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.intl.t('titles.new'); - } -} diff --git a/ui/admin/app/controllers/scopes/scope/workers/worker.js b/ui/admin/app/controllers/scopes/scope/workers/worker.js deleted file mode 100644 index 186cd06a3..000000000 --- a/ui/admin/app/controllers/scopes/scope/workers/worker.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import Controller from '@ember/controller'; - -export default class ScopesScopeWorkersWorkerController extends Controller { - // =attributes - - /** - * A worker breadcrumb - * @type {string} - */ - get breadCrumb() { - return this.model.displayName; - } -} diff --git a/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording.js b/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording.js new file mode 100644 index 000000000..dcd076d69 --- /dev/null +++ b/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording.js @@ -0,0 +1,37 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + +import Route from '@ember/routing/route'; +import { inject as service } from '@ember/service'; +import { action } from '@ember/object'; + +export default class ScopesScopeTargetsTargetEnableSessionRecordingRoute extends Route { + // =services + @service store; + @service router; + + // =methods + + /** + * Returns the current target + * @return {TargetModel} + */ + + model() { + return this.modelFor('scopes.scope.targets.target'); + } + + // =actions + /** + * Reset the selected storage bucket and redirect to target + * @param {TargetModel} target + */ + @action + cancel(target) { + const { id } = target; + target.rollbackAttributes(); + this.router.replaceWith('scopes.scope.targets.target', id); + } +} diff --git a/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording/index.js b/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording/index.js index 75835ccc1..2c083f943 100644 --- a/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording/index.js +++ b/ui/admin/app/routes/scopes/scope/targets/target/enable-session-recording/index.js @@ -5,7 +5,6 @@ import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; export default class ScopesScopeTargetsTargetEnableSessionRecordingIndexRoute extends Route { // =services @@ -14,15 +13,6 @@ export default class ScopesScopeTargetsTargetEnableSessionRecordingIndexRoute ex // =methods - /** - * Returns the current target - * @return {TargetModel} - */ - - model() { - return this.modelFor('scopes.scope.targets.target'); - } - /** * Load storage buckets from target's parent's scope and global scope * @param {Model} model @@ -46,18 +36,6 @@ export default class ScopesScopeTargetsTargetEnableSessionRecordingIndexRoute ex ]; this.storageBucketList = storageBucketList; } - // =actions - - /** - * Reset the selected storage bucket and redirect to target - * @param {TargetModel} target - */ - @action - cancel(target) { - const { id } = target; - target.rollbackAttributes(); - this.router.replaceWith('scopes.scope.targets.target', id); - } /** * Adds `storageBucketList` to the context. diff --git a/ui/admin/app/services/breadcrumbs.js b/ui/admin/app/services/breadcrumbs.js new file mode 100644 index 000000000..e87630983 --- /dev/null +++ b/ui/admin/app/services/breadcrumbs.js @@ -0,0 +1,50 @@ +import Service from '@ember/service'; +import { tracked } from '@glimmer/tracking'; +import { assert } from '@ember/debug'; + +// This service copies source code from @Bagaar/ember-breadcrumbs v4.1.0 +// The original copyright is below. +/* +The MIT License (MIT) + +Copyright (c) 2021 + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +export default class BreadcrumbsService extends Service { + @tracked containers = []; + #containers = []; + + registerContainer(container) { + assert( + 'A breadcrumb container with the same DOM element has already been registered before.', + !this.#isContainerRegistered(container) + ); + this.#containers = [...this.#containers, container]; + this.containers = this.#containers; + } + + unregisterContainer(container) { + assert( + 'No breadcrumb container was found with this DOM element.', + this.#isContainerRegistered(container) + ); + + this.#containers = this.#containers.filter((registeredContainer) => { + return container.element !== registeredContainer.element; + }); + + this.containers = this.#containers; + } + + #isContainerRegistered(container) { + return this.#containers.some((registeredContainer) => { + return container.element === registeredContainer.element; + }); + } +} diff --git a/ui/admin/app/templates/scopes/scope.hbs b/ui/admin/app/templates/scopes/scope.hbs index 0c63946ab..99a296be7 100644 --- a/ui/admin/app/templates/scopes/scope.hbs +++ b/ui/admin/app/templates/scopes/scope.hbs @@ -6,6 +6,12 @@ {{#if @model.isOrg}} {{page-title (t 'resources.org.title_plural')}} {{page-title @model.displayName}} + {{/if}} {{#if @model.isProject}} @@ -13,6 +19,18 @@ {{page-title this.scopes.selectedOrg.displayName}} {{page-title (t 'resources.project.title_plural')}} {{page-title @model.displayName}} + + {{/if}} @@ -98,10 +116,7 @@ {{/if}} {{#if (can 'navigate model' @model collection='targets')}} - + {{t 'resources.target.title_plural'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/auth-methods.hbs b/ui/admin/app/templates/scopes/scope/auth-methods.hbs index cd7a68edf..e876071f3 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.auth-method.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method.hbs index 40b29859d..210b1843a 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts.hbs new file mode 100644 index 000000000..55528d673 --- /dev/null +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts.hbs @@ -0,0 +1,12 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +}} + +{{page-title (t 'resources.account.title_plural')}} + + +{{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs index 40b29859d..c0034e4a5 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/index.hbs index 048796725..3144ed0d7 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs index eccc3b227..63b90f01a 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'actions.set-password')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/index.hbs index ed85af7f2..1c1eb2a1a 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/new.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/new.hbs index 827bcc437..7a3d4f8d9 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/new.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/accounts/new.hbs @@ -3,10 +3,16 @@ SPDX-License-Identifier: MPL-2.0 }} +{{page-title (t 'titles.new')}} + + - + @@ -14,7 +20,7 @@ {{t 'resources.account.titles.new'}} -

{{t 'resources.auth-method.description'}}

+

{{t 'resources.account.description'}}

diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/index.hbs index 9a27415c1..064a674ab 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups.hbs index 6521c36e6..edfc28385 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.managed-group.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/index.hbs index 29df81a5c..b8c2d2f97 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.hbs index 02c88ea25..d559aeba4 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group.hbs @@ -4,4 +4,10 @@ }} {{page-title @model.displayName}} + + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/index.hbs index 16ba2d550..99760de94 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.hbs index 538b28538..3c2aa6451 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.managed-group.member.title_plural')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/new.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/new.hbs index cb17c029a..97cced906 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/new.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/managed-groups/new.hbs @@ -3,17 +3,24 @@ SPDX-License-Identifier: MPL-2.0 }} +{{page-title (t 'titles.new')}} + + - +

- {{t 'titles.new'}} + {{t 'resources.managed-group.titles.new'}}

+

{{t 'resources.managed-group.description'}}

diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/members.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/members.hbs deleted file mode 100644 index 709cc2715..000000000 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/members.hbs +++ /dev/null @@ -1,8 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: MPL-2.0 -}} - -{{page-title (t 'resources.managed-group.member.title_plural')}} - -{{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs index b8a23d853..1c3d63f5e 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs @@ -13,7 +13,7 @@
- + diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/new.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/new.hbs index efb859739..4e5597192 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/new.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/new.hbs @@ -4,6 +4,10 @@ }} {{page-title (t 'titles.new')}} + @@ -15,7 +19,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores.hbs b/ui/admin/app/templates/scopes/scope/credential-stores.hbs index 71b696866..5feeeb15b 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.credential-store.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store.hbs index 40b29859d..75b84b816 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries.hbs index c980e856d..e2dce6aad 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.credential-library.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.hbs index 40b29859d..0244ee4c7 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs index 95813c682..d00c75d42 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs index 1674fd027..e24054c73 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/new.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/new.hbs index 50de95462..ba8457df6 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/new.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/new.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials.hbs index c4763b48c..9b8dbe6c8 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.credential.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential.hbs index 40b29859d..9807095fe 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs index 8d778bfcd..c506c3e98 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/index.hbs index 15dae1f66..9e5ad99b8 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/new.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/new.hbs index 3fb44693a..e4cf8e0a3 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/new.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/new.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/index.hbs index 121cbd625..90943fd40 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs index 3f67dfd5a..3078704d3 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/new.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/new.hbs index e7d56976b..5f2f1dc30 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/new.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/new.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/edit.hbs b/ui/admin/app/templates/scopes/scope/edit.hbs index dbde090a4..9b94bfa99 100644 --- a/ui/admin/app/templates/scopes/scope/edit.hbs +++ b/ui/admin/app/templates/scopes/scope/edit.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/groups.hbs b/ui/admin/app/templates/scopes/scope/groups.hbs index 6b116dbc9..7fb3df66a 100644 --- a/ui/admin/app/templates/scopes/scope/groups.hbs +++ b/ui/admin/app/templates/scopes/scope/groups.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.group.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/groups/group.hbs b/ui/admin/app/templates/scopes/scope/groups/group.hbs index 40b29859d..6b09fab5c 100644 --- a/ui/admin/app/templates/scopes/scope/groups/group.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/group.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/groups/group/add-members.hbs b/ui/admin/app/templates/scopes/scope/groups/group/add-members.hbs index 55a4b22db..6bfecabfc 100644 --- a/ui/admin/app/templates/scopes/scope/groups/group/add-members.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/group/add-members.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.group.messages.add-members.title')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/groups/group/index.hbs b/ui/admin/app/templates/scopes/scope/groups/group/index.hbs index 46391c860..372d09462 100644 --- a/ui/admin/app/templates/scopes/scope/groups/group/index.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/group/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/groups/group/members.hbs b/ui/admin/app/templates/scopes/scope/groups/group/members.hbs index 41b049302..a73f523c8 100644 --- a/ui/admin/app/templates/scopes/scope/groups/group/members.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/group/members.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.group.messages.members.title')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/groups/index.hbs b/ui/admin/app/templates/scopes/scope/groups/index.hbs index bda145550..c08bb2e0d 100644 --- a/ui/admin/app/templates/scopes/scope/groups/index.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/groups/new.hbs b/ui/admin/app/templates/scopes/scope/groups/new.hbs index 0166bb722..295502bb0 100644 --- a/ui/admin/app/templates/scopes/scope/groups/new.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/new.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs.hbs index 60776ce34..103d3f96d 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.host-catalog.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs index 40b29859d..b760436d6 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets.hbs index 49279ddf3..81da3964e 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.host-set.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.hbs index 40b29859d..24ef46a6c 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs index 10430bead..19992d8bd 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'resources.host-set.actions.add-hosts')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs index 54b62456f..c9b9c1f3c 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'resources.host-set.actions.create-and-add-host')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs index 180fab5f6..5a8eefc70 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.host.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.hbs index 40b29859d..0825eeefe 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host/index.hbs index c290d4f87..c980a6008 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs index 14fcd6d3d..7933e5d3c 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs index 4a1a7892d..9bc868f81 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs index 543bf26cf..652f75433 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs index 75abdf63e..b4c446d6b 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts.hbs index 180fab5f6..8c628e508 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.host.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host.hbs index 40b29859d..7d4cf9125 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs index 7ab0010c7..1713dbcda 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs index ab622d20e..a0fa8163d 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs index 46da596d0..31392be85 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs index 3f4c89b6e..b35e49b13 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs index 42a787892..98b807475 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs index 9e60673a3..455ae99a1 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/roles.hbs b/ui/admin/app/templates/scopes/scope/roles.hbs index aa6837e8c..5d6b78205 100644 --- a/ui/admin/app/templates/scopes/scope/roles.hbs +++ b/ui/admin/app/templates/scopes/scope/roles.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.role.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/roles/index.hbs b/ui/admin/app/templates/scopes/scope/roles/index.hbs index 054f2bf4f..96981c53c 100644 --- a/ui/admin/app/templates/scopes/scope/roles/index.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/roles/new.hbs b/ui/admin/app/templates/scopes/scope/roles/new.hbs index a2830d4f4..c89df5fa5 100644 --- a/ui/admin/app/templates/scopes/scope/roles/new.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/new.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/roles/role.hbs b/ui/admin/app/templates/scopes/scope/roles/role.hbs index 40b29859d..684bb9da0 100644 --- a/ui/admin/app/templates/scopes/scope/roles/role.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/role.hbs @@ -4,5 +4,9 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/roles/role/add-principals.hbs b/ui/admin/app/templates/scopes/scope/roles/role/add-principals.hbs index b538bfed3..b9dd928da 100644 --- a/ui/admin/app/templates/scopes/scope/roles/role/add-principals.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/role/add-principals.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.role.principal.actions.add-principals')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/roles/role/grants.hbs b/ui/admin/app/templates/scopes/scope/roles/role/grants.hbs index 7f645154b..01b601ba9 100644 --- a/ui/admin/app/templates/scopes/scope/roles/role/grants.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/role/grants.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.role.grant.title_plural')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/roles/role/index.hbs b/ui/admin/app/templates/scopes/scope/roles/role/index.hbs index 55e6fe683..893f81746 100644 --- a/ui/admin/app/templates/scopes/scope/roles/role/index.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/role/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs b/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs index 0d03ee4b9..277ba7626 100644 --- a/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.role.principal.title_plural')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/scopes.hbs b/ui/admin/app/templates/scopes/scope/scopes.hbs index 72e9a2bed..0076b0acb 100644 --- a/ui/admin/app/templates/scopes/scope/scopes.hbs +++ b/ui/admin/app/templates/scopes/scope/scopes.hbs @@ -5,10 +5,22 @@ {{#if @model.currentScope.isGlobal}} {{page-title (t 'resources.org.title_plural')}} + {{/if}} {{#if @model.currentScope.isOrg}} {{page-title (t 'resources.project.title_plural')}} + {{/if}} {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/scopes/index.hbs b/ui/admin/app/templates/scopes/scope/scopes/index.hbs index b9c6d9457..157c84323 100644 --- a/ui/admin/app/templates/scopes/scope/scopes/index.hbs +++ b/ui/admin/app/templates/scopes/scope/scopes/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/scopes/new.hbs b/ui/admin/app/templates/scopes/scope/scopes/new.hbs index db56b219c..8519e0f77 100644 --- a/ui/admin/app/templates/scopes/scope/scopes/new.hbs +++ b/ui/admin/app/templates/scopes/scope/scopes/new.hbs @@ -4,11 +4,22 @@ }} {{page-title (t 'titles.new')}} +{{#if @model.isOrg}} + +{{else if @model.isProject}} + +{{/if}} - + diff --git a/ui/admin/app/templates/scopes/scope/session-recordings.hbs b/ui/admin/app/templates/scopes/scope/session-recordings.hbs index 12f34d565..8ed310939 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings.hbs @@ -4,4 +4,9 @@ }} {{page-title (t 'resources.session-recording.title_plural')}} + + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/session-recordings/index.hbs b/ui/admin/app/templates/scopes/scope/session-recordings/index.hbs index 060df004a..fc4f58a8e 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings/index.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording.hbs b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording.hbs index 02c88ea25..4392f3adc 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording.hbs @@ -4,4 +4,10 @@ }} {{page-title @model.displayName}} + + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection.hbs b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection.hbs index 7284923f8..01cc8676c 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection.hbs @@ -3,6 +3,10 @@ SPDX-License-Identifier: MPL-2.0 }} -{{page-title (t 'resources.session-recording.channel.title_plural')}} +{{page-title (t 'resources.session-recording.channels-by-connection.title')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.hbs b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.hbs index 795c8f5d7..1dd6a983f 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.hbs @@ -4,10 +4,18 @@ }} {{page-title (t 'resources.session-recording.channel.title')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs index 6ba776f76..90ccb6b85 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/sessions.hbs b/ui/admin/app/templates/scopes/scope/sessions.hbs index daa284c5d..069d86dd6 100644 --- a/ui/admin/app/templates/scopes/scope/sessions.hbs +++ b/ui/admin/app/templates/scopes/scope/sessions.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.session.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/sessions/index.hbs b/ui/admin/app/templates/scopes/scope/sessions/index.hbs index 784696992..930a520b3 100644 --- a/ui/admin/app/templates/scopes/scope/sessions/index.hbs +++ b/ui/admin/app/templates/scopes/scope/sessions/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets.hbs index 6067d7abe..ca3b767ec 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.storage-bucket.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs index 0b71a2252..bc3003d1f 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets/new.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets/new.hbs index 1c38ac244..f4977f758 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets/new.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets/new.hbs @@ -4,10 +4,14 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket.hbs index 40b29859d..b145721e6 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs index bf58d6bd1..2b6622a8a 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs @@ -5,7 +5,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/targets.hbs b/ui/admin/app/templates/scopes/scope/targets.hbs index 35b3fcba4..bf7e87ec4 100644 --- a/ui/admin/app/templates/scopes/scope/targets.hbs +++ b/ui/admin/app/templates/scopes/scope/targets.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.target.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/targets/index.hbs b/ui/admin/app/templates/scopes/scope/targets/index.hbs index afae61af3..647d8d0e4 100644 --- a/ui/admin/app/templates/scopes/scope/targets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/targets/new.hbs b/ui/admin/app/templates/scopes/scope/targets/new.hbs index 8b70b890c..7db5f04bc 100644 --- a/ui/admin/app/templates/scopes/scope/targets/new.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/new.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target.hbs b/ui/admin/app/templates/scopes/scope/targets/target.hbs index 40b29859d..ca21f438c 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/targets/target/add-brokered-credential-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/add-brokered-credential-sources.hbs index a37684f80..4c24c1133 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/add-brokered-credential-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/add-brokered-credential-sources.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.target.actions.add-brokered-credential-sources')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/add-host-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/add-host-sources.hbs index 76d59b9b5..6ecf560e3 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/add-host-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/add-host-sources.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.target.actions.add-host-sources')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/add-injected-application-credential-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/add-injected-application-credential-sources.hbs index 51b3a3b63..5245128e5 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/add-injected-application-credential-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/add-injected-application-credential-sources.hbs @@ -6,9 +6,16 @@ {{page-title (t 'resources.target.actions.add-injected-application-credential-sources') }} + + - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs index d76f32d34..a9fdadd6c 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.target.brokered-credential-source.title_plural')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording.hbs b/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording.hbs new file mode 100644 index 000000000..5ef388cc6 --- /dev/null +++ b/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording.hbs @@ -0,0 +1,12 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +}} + +{{page-title (t 'resources.target.actions.enable-session-recording')}} + + +{{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.hbs b/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.hbs index 1145c9129..f7255d46e 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/create-storage-bucket.hbs @@ -4,8 +4,16 @@ }} {{page-title (t 'titles.new')}} + + + + +

{{t 'resources.storage-bucket.titles.new'}} diff --git a/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/index.hbs b/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/index.hbs index d684ed19b..2f131fcdc 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/enable-session-recording/index.hbs @@ -3,11 +3,9 @@ SPDX-License-Identifier: MPL-2.0 }} -{{page-title (t 'resources.target.actions.enable-session-recording')}} - - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs index 73bd69289..d35f9cc65 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.target.host-source.title_plural')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs index e198a88c8..9bb29e01f 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs index d82248b48..02b18e01f 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs @@ -6,11 +6,17 @@ {{page-title (t 'resources.target.injected-application-credential-source.title_plural') }} + - + diff --git a/ui/admin/app/templates/scopes/scope/users.hbs b/ui/admin/app/templates/scopes/scope/users.hbs index b18759642..bfbe02c91 100644 --- a/ui/admin/app/templates/scopes/scope/users.hbs +++ b/ui/admin/app/templates/scopes/scope/users.hbs @@ -4,5 +4,9 @@ }} {{page-title (t 'resources.user.title_plural')}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/users/index.hbs b/ui/admin/app/templates/scopes/scope/users/index.hbs index ce7a5a5b8..6b4e6d157 100644 --- a/ui/admin/app/templates/scopes/scope/users/index.hbs +++ b/ui/admin/app/templates/scopes/scope/users/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/users/new.hbs b/ui/admin/app/templates/scopes/scope/users/new.hbs index b421f3336..6eb94d88d 100644 --- a/ui/admin/app/templates/scopes/scope/users/new.hbs +++ b/ui/admin/app/templates/scopes/scope/users/new.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'titles.new')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/users/user.hbs b/ui/admin/app/templates/scopes/scope/users/user.hbs index 40b29859d..0eb3d978f 100644 --- a/ui/admin/app/templates/scopes/scope/users/user.hbs +++ b/ui/admin/app/templates/scopes/scope/users/user.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs b/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs index 943fc5518..c9f9fd4cc 100644 --- a/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs +++ b/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.user.messages.accounts.title')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/users/user/add-accounts.hbs b/ui/admin/app/templates/scopes/scope/users/user/add-accounts.hbs index fd84d96e2..da951e9d8 100644 --- a/ui/admin/app/templates/scopes/scope/users/user/add-accounts.hbs +++ b/ui/admin/app/templates/scopes/scope/users/user/add-accounts.hbs @@ -4,11 +4,15 @@ }} {{page-title (t 'resources.user.actions.add-accounts')}} + - + diff --git a/ui/admin/app/templates/scopes/scope/users/user/index.hbs b/ui/admin/app/templates/scopes/scope/users/user/index.hbs index db3322749..92cdd832f 100644 --- a/ui/admin/app/templates/scopes/scope/users/user/index.hbs +++ b/ui/admin/app/templates/scopes/scope/users/user/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/workers.hbs b/ui/admin/app/templates/scopes/scope/workers.hbs index 7248fbe6c..d9a66e52c 100644 --- a/ui/admin/app/templates/scopes/scope/workers.hbs +++ b/ui/admin/app/templates/scopes/scope/workers.hbs @@ -4,4 +4,9 @@ }} {{page-title (t 'resources.worker.title_plural')}} + + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/workers/index.hbs b/ui/admin/app/templates/scopes/scope/workers/index.hbs index 66b7d8fa6..61768ded4 100644 --- a/ui/admin/app/templates/scopes/scope/workers/index.hbs +++ b/ui/admin/app/templates/scopes/scope/workers/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/app/templates/scopes/scope/workers/new.hbs b/ui/admin/app/templates/scopes/scope/workers/new.hbs index 00a343fe4..300b5daee 100644 --- a/ui/admin/app/templates/scopes/scope/workers/new.hbs +++ b/ui/admin/app/templates/scopes/scope/workers/new.hbs @@ -4,16 +4,20 @@ }} {{page-title (t 'titles.new')}} + - +

- {{t 'resources.worker.title_pki'}} + {{t 'resources.worker.titles.new'}}

diff --git a/ui/admin/app/templates/scopes/scope/workers/worker.hbs b/ui/admin/app/templates/scopes/scope/workers/worker.hbs index 40b29859d..7f7c59dd2 100644 --- a/ui/admin/app/templates/scopes/scope/workers/worker.hbs +++ b/ui/admin/app/templates/scopes/scope/workers/worker.hbs @@ -4,5 +4,10 @@ }} {{page-title @model.displayName}} + {{outlet}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/workers/worker/index.hbs b/ui/admin/app/templates/scopes/scope/workers/worker/index.hbs index ff04c0d6a..c0b699607 100644 --- a/ui/admin/app/templates/scopes/scope/workers/worker/index.hbs +++ b/ui/admin/app/templates/scopes/scope/workers/worker/index.hbs @@ -6,7 +6,7 @@ - + diff --git a/ui/admin/tests/acceptance/workers/create-test.js b/ui/admin/tests/acceptance/workers/create-test.js index 39870e1d4..fad34d3ef 100644 --- a/ui/admin/tests/acceptance/workers/create-test.js +++ b/ui/admin/tests/acceptance/workers/create-test.js @@ -101,7 +101,7 @@ module('Acceptance | workers | create', function (hooks) { test('Users can navigate to new workers route with proper authorization', async function (assert) { assert.expect(2); - await visit(newWorkerURL); + await visit(workersURL); assert.ok( globalScope.authorized_collection_actions.workers.includes( 'create:worker-led' diff --git a/ui/admin/tests/acceptance/workers/read-test.js b/ui/admin/tests/acceptance/workers/read-test.js index 647a7f32d..f81fc9d5d 100644 --- a/ui/admin/tests/acceptance/workers/read-test.js +++ b/ui/admin/tests/acceptance/workers/read-test.js @@ -4,7 +4,7 @@ */ import { module, test } from 'qunit'; -import { visit } from '@ember/test-helpers'; +import { visit, currentURL, click } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; import a11yAudit from 'ember-a11y-testing/test-support/audit'; @@ -19,9 +19,12 @@ module('Acceptance | workers | read', function (hooks) { setupApplicationTest(hooks); setupMirage(hooks); + let featuresService; + const instances = { scopes: { global: null, + org: null, }, worker: null, }; @@ -35,6 +38,10 @@ module('Acceptance | workers | read', function (hooks) { hooks.beforeEach(function () { //Generate the resources instances.scopes.global = this.server.create('scope', { id: 'global' }); + instances.scopes.org = this.server.create('scope', { + type: 'org', + scope: { id: 'global', type: 'global' }, + }); instances.worker = this.server.create('worker', { scope: instances.scopes.global, }); @@ -42,22 +49,30 @@ module('Acceptance | workers | read', function (hooks) { urls.globalScope = '/scopes/global'; urls.workers = `${urls.globalScope}/workers`; urls.worker = `${urls.workers}/${instances.worker.id}`; + + featuresService = this.owner.lookup('service:features'); + featuresService.enable('byow'); authenticateSession({}); }); - test('visiting workers', async function (assert) { + test('visiting worker', async function (assert) { assert.expect(1); await visit(urls.workers); await a11yAudit(); - assert.dom(`[href="${urls.workers}"]`).isVisible(); + + await click(`[href="${urls.worker}"]`); + + assert.strictEqual(currentURL(), urls.worker); }); test('cannot navigate to an worker form without proper authorization', async function (assert) { assert.expect(1); instances.worker.authorized_actions = instances.worker.authorized_actions.filter((itm) => itm !== 'read'); - await visit(urls.workers); - await a11yAudit(); + await visit(urls.globalScope); + + await click(`[href="${urls.workers}"]`); + assert .dom('main tbody .rose-table-header-cell:nth-child(1) a') .isNotVisible(); @@ -65,8 +80,10 @@ module('Acceptance | workers | read', function (hooks) { test('can navigate to an worker form with proper authorization', async function (assert) { assert.expect(1); - await visit(urls.workers); - await a11yAudit(); + await visit(urls.globalScope); + + await click(`[href="${urls.workers}"]`); + assert.dom('main tbody .rose-table-header-cell:nth-child(1) a').isVisible(); }); }); diff --git a/ui/admin/tests/integration/components/breadcrumbs/container/index-test.js b/ui/admin/tests/integration/components/breadcrumbs/container/index-test.js new file mode 100644 index 000000000..75900324f --- /dev/null +++ b/ui/admin/tests/integration/components/breadcrumbs/container/index-test.js @@ -0,0 +1,21 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'admin/tests/helpers'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module( + 'Integration | Component | breadcrumbs/container/index', + function (hooks) { + setupRenderingTest(hooks); + + test('it renders', async function (assert) { + assert.expect(2); + await render( + hbs` ` + ); + + assert.dom('.hds-breadcrumb__text').hasText('Orgs'); + assert.dom('.hds-breadcrumb__icon').exists(); + }); + } +); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods-test.js deleted file mode 100644 index b0e73432c..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/auth-methods', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/auth-methods'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js deleted file mode 100644 index 0f37c154a..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js deleted file mode 100644 index e96f222ef..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/accounts' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js deleted file mode 100644 index 8a4f786c2..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/account', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/accounts/account' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js deleted file mode 100644 index 078a23f53..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/account/set-password', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/accounts/account/set-password' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js deleted file mode 100644 index ef7c2e47b..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/new', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/accounts/new' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups-test.js deleted file mode 100644 index 4711024a7..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/managed-groups' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group-test.js deleted file mode 100644 index 0f6d7d00f..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups/managed-group', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/managed-groups/managed-group' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members-test.js deleted file mode 100644 index badbd0ccd..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/managed-groups/managed-group/members' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/new-test.js deleted file mode 100644 index a7f55d4ea..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/auth-methods/auth-method/managed-groups/new-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/auth-methods/auth-method/managed-groups/new', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/auth-methods/auth-method/managed-groups/new' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/credential-stores-test.js b/ui/admin/tests/unit/controllers/scopes/scope/credential-stores-test.js deleted file mode 100644 index 43f7c757d..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/credential-stores-test.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/credential-stores', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/credential-stores' - ); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store/credential-libraries-test.js b/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store/credential-libraries-test.js deleted file mode 100644 index 0062428af..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store/credential-libraries-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/credential-stores/credential-store/credential-libraries', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/credential-stores/credential-store/credential-libraries' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store-test.js b/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store/credentials/new-test.js similarity index 88% rename from ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store-test.js rename to ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store/credentials/new-test.js index ade3eab0d..2035d0f6d 100644 --- a/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store-test.js +++ b/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/credential-store/credentials/new-test.js @@ -7,14 +7,13 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module( - 'Unit | Controller | scopes/scope/credential-stores/credential-store', + 'Unit | Controller | scopes/scope/credential-stores/credential-store/credentials/new', function (hooks) { setupTest(hooks); - // TODO: Replace this with your real tests. test('it exists', function (assert) { let controller = this.owner.lookup( - 'controller:scopes/scope/credential-stores/credential-store' + 'controller:scopes/scope/credential-stores/credential-store/credentials/new' ); assert.ok(controller); }); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/users/user/add-accounts-test.js b/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/new-test.js similarity index 74% rename from ui/admin/tests/unit/controllers/scopes/scope/users/user/add-accounts-test.js rename to ui/admin/tests/unit/controllers/scopes/scope/credential-stores/new-test.js index a2d21c865..41623a63b 100644 --- a/ui/admin/tests/unit/controllers/scopes/scope/users/user/add-accounts-test.js +++ b/ui/admin/tests/unit/controllers/scopes/scope/credential-stores/new-test.js @@ -7,13 +7,13 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module( - 'Unit | Controller | scopes/scope/users/user/add-accounts', + 'Unit | Controller | scopes/scope/credential-stores/new', function (hooks) { setupTest(hooks); test('it exists', function (assert) { let controller = this.owner.lookup( - 'controller:scopes/scope/users/user/add-accounts' + 'controller:scopes/scope/credential-stores/new' ); assert.ok(controller); }); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/groups-test.js b/ui/admin/tests/unit/controllers/scopes/scope/groups-test.js deleted file mode 100644 index d867ac870..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/groups-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/groups', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/groups'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/groups/group-test.js b/ui/admin/tests/unit/controllers/scopes/scope/groups/group-test.js deleted file mode 100644 index 52355d1d8..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/groups/group-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/groups/group', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/groups/group'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/groups/group/members-test.js b/ui/admin/tests/unit/controllers/scopes/scope/groups/group/members-test.js deleted file mode 100644 index bb6d9cf08..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/groups/group/members-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/groups/group/members', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/groups/group/members' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/groups/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/groups/new-test.js deleted file mode 100644 index 420ba12b0..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/groups/new-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/groups/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/groups/new'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs-test.js deleted file mode 100644 index d531521b4..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs-test.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/host-catalogs', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/host-catalogs'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog-test.js deleted file mode 100644 index e81b4b621..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets-test.js deleted file mode 100644 index 4f0d53bec..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set-test.js deleted file mode 100644 index 91608a2b7..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/host-set', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets/host-set' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js deleted file mode 100644 index 847a3c550..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host-test.js deleted file mode 100644 index 458466821..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js deleted file mode 100644 index 2f715ea7c..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host-test.js deleted file mode 100644 index e0ae20b96..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/host' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/new-test.js deleted file mode 100644 index 614be5cce..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/host-sets/new-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/new', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/host-sets/new' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts-test.js deleted file mode 100644 index e2cfc789f..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/hosts', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/hosts' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/host-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/host-test.js deleted file mode 100644 index a28cc6bf1..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/host-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/hosts/host', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/hosts/host' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new-test.js deleted file mode 100644 index 151ee7721..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/hosts/new', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/host-catalogs/host-catalog/hosts/new' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/roles-test.js b/ui/admin/tests/unit/controllers/scopes/scope/roles-test.js deleted file mode 100644 index 397860def..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/roles-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/roles', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/roles'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/roles/role-test.js b/ui/admin/tests/unit/controllers/scopes/scope/roles/role-test.js deleted file mode 100644 index 6abfea8d0..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/roles/role-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/roles/role', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/roles/role'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/roles/role/grants-test.js b/ui/admin/tests/unit/controllers/scopes/scope/roles/role/grants-test.js deleted file mode 100644 index 046ffd660..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/roles/role/grants-test.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/roles/role/grants', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/roles/role/grants' - ); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/roles/role/principals-test.js b/ui/admin/tests/unit/controllers/scopes/scope/roles/role/principals-test.js deleted file mode 100644 index dca18665e..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/roles/role/principals-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/roles/role/principals', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/roles/role/principals' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/scopes-test.js b/ui/admin/tests/unit/controllers/scopes/scope/scopes-test.js deleted file mode 100644 index 1c1930c1b..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/scopes-test.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/scopes', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/scopes'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/scopes/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/scopes/new-test.js deleted file mode 100644 index 009f3d36d..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/scopes/new-test.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/scopes/new', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/scopes/new'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings-test.js b/ui/admin/tests/unit/controllers/scopes/scope/session-recordings-test.js deleted file mode 100644 index 74985c96e..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings-test.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module('Unit | Controller | session-recordings', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/session-recordings' - ); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording-test.js b/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording-test.js deleted file mode 100644 index da7378079..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | session-recordings | session-recording', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/session-recordings/session-recording' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection-test.js b/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection-test.js deleted file mode 100644 index 1681b0f8e..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | session-recordings | session-recording | channels-by-connection', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/session-recordings/session-recording/channels-by-connection' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection/channel-test.js b/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection/channel-test.js deleted file mode 100644 index b88bd2d8d..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/session-recordings/session-recording/channels-by-connection/channel-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | session-recordings | session-recording | channels-by-connection | channel', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/session-recordings/session-recording/channels-by-connection/channel' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/sessions-test.js b/ui/admin/tests/unit/controllers/scopes/scope/sessions-test.js deleted file mode 100644 index 4e90540e0..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/sessions-test.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/sessions', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/sessions'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets-test.js b/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets-test.js deleted file mode 100644 index fa69f7929..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets-test.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module('Unit | Controller | scopes/scope/storage-buckets', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/storage-buckets' - ); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets/new-test.js deleted file mode 100644 index cf475a71c..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets/new-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | scopes/scope/storage-buckets/new', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/storage-buckets/new' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets/storage-bucket-test.js b/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets/storage-bucket-test.js deleted file mode 100644 index 71fc60882..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/storage-buckets/storage-bucket-test.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | scopes/scope/storage-buckets/storage-bucket', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/storage-buckets/storage-bucket' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets-test.js deleted file mode 100644 index 1fe9848ff..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets-test.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/targets', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/targets'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/roles/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/new-test.js similarity index 62% rename from ui/admin/tests/unit/controllers/scopes/scope/roles/new-test.js rename to ui/admin/tests/unit/controllers/scopes/scope/targets/new-test.js index 99d33e97a..4d007f161 100644 --- a/ui/admin/tests/unit/controllers/scopes/scope/roles/new-test.js +++ b/ui/admin/tests/unit/controllers/scopes/scope/targets/new-test.js @@ -6,11 +6,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/roles/new', function (hooks) { +module('Unit | Controller | scopes/scope/targets/new', function (hooks) { setupTest(hooks); test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/roles/new'); + const controller = this.owner.lookup('controller:scopes/scope/targets/new'); assert.ok(controller); }); }); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target-test.js deleted file mode 100644 index 3ea9bb3f9..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets/target-test.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/targets/target', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/targets/target' - ); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-brokered-credential-sources-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-brokered-credential-sources-test.js new file mode 100644 index 000000000..34d80c2d3 --- /dev/null +++ b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-brokered-credential-sources-test.js @@ -0,0 +1,57 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + +import { module, test } from 'qunit'; +import { setupTest } from 'ember-qunit'; + +module( + 'Unit | Controller | scopes/scope/targets/target/add-brokered-credential-sources', + function (hooks) { + setupTest(hooks); + + test('it exists', function (assert) { + const controller = this.owner.lookup( + 'controller:scopes/scope/targets/target/add-brokered-credential-sources' + ); + assert.ok(controller); + }); + + test('hasAvailableBrokeredCredentialSources returns true if target has available credentials', function (assert) { + const store = this.owner.lookup('service:store'); + const controller = this.owner.lookup( + 'controller:scopes/scope/targets/target/add-brokered-credential-sources' + ); + + const target = store.createRecord('target', { + brokered_credential_source_ids: [{ value: 'cred_123' }], + }); + const credentialLibraries = [ + store.createRecord('credential-library', {}), + ]; + const credentials = [store.createRecord('credential', {})]; + controller.set('model', { target, credentialLibraries, credentials }); + + assert.true(controller.hasAvailableBrokeredCredentialSources); + }); + + test('hasAvailableBrokeredCredentialSources returns false if target has no available credentials', function (assert) { + const store = this.owner.lookup('service:store'); + const controller = this.owner.lookup( + 'controller:scopes/scope/targets/target/add-brokered-credential-sources' + ); + + const target = store.createRecord('target', { + brokered_credential_source_ids: [{ value: 'cred_123' }], + }); + controller.set('model', { + target, + credentialLibraries: [], + credentials: [], + }); + + assert.false(controller.hasAvailableBrokeredCredentialSources); + }); + } +); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-host-sources-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-host-sources-test.js deleted file mode 100644 index 2d38fc205..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-host-sources-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/targets/target/add-host-sources', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/targets/target/add-host-sources' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-injected-application-credential-sources-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-injected-application-credential-sources-test.js new file mode 100644 index 000000000..a32df8dba --- /dev/null +++ b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/add-injected-application-credential-sources-test.js @@ -0,0 +1,57 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + +import { module, test } from 'qunit'; +import { setupTest } from 'ember-qunit'; + +module( + 'Unit | Controller | scopes/scope/targets/target/add-injected-application-credential-sources', + function (hooks) { + setupTest(hooks); + + test('it exists', function (assert) { + const controller = this.owner.lookup( + 'controller:scopes/scope/targets/target/add-injected-application-credential-sources' + ); + assert.ok(controller); + }); + + test('hasAvailableInjectedApplicationCredentialSources returns true if target has available credentials', function (assert) { + const store = this.owner.lookup('service:store'); + const controller = this.owner.lookup( + 'controller:scopes/scope/targets/target/add-injected-application-credential-sources' + ); + + const target = store.createRecord('target', { + injected_application_credential_source_ids: [{ value: 'cred_123' }], + }); + const credentialLibraries = [ + store.createRecord('credential-library', {}), + ]; + const credentials = [store.createRecord('credential', {})]; + controller.set('model', { target, credentialLibraries, credentials }); + + assert.true(controller.hasAvailableInjectedApplicationCredentialSources); + }); + + test('hasAvailableInjectedApplicationCredentialSources returns false if target has no available credentials', function (assert) { + const store = this.owner.lookup('service:store'); + const controller = this.owner.lookup( + 'controller:scopes/scope/targets/target/add-injected-application-credential-sources' + ); + + const target = store.createRecord('target', { + injected_application_credential_source_ids: [{ value: 'cred_123' }], + }); + controller.set('model', { + target, + credentialLibraries: [], + credentials: [], + }); + + assert.false(controller.hasAvailableInjectedApplicationCredentialSources); + }); + } +); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/credential-sources-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/credential-sources-test.js deleted file mode 100644 index 86e6b37fa..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/credential-sources-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/targets/target/brokered-credential-sources', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/targets/target/brokered-credential-sources' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/enable-session-recording/create-storage-bucket-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/enable-session-recording/create-storage-bucket-test.js deleted file mode 100644 index b053b60c7..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/enable-session-recording/create-storage-bucket-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | scopes/scope/targets/target/enable-session-recording/create-storage-bucket', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/targets/target/enable-session-recording/create-storage-bucket' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/enable-session-recording/index-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/enable-session-recording/index-test.js deleted file mode 100644 index 5eb97b0a2..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/enable-session-recording/index-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'admin/tests/helpers'; - -module( - 'Unit | Controller | scopes/scope/targets/target/enable-session-recording/index', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/targets/target/enable-session-recording/index' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/host-sources-test.js b/ui/admin/tests/unit/controllers/scopes/scope/targets/target/host-sources-test.js deleted file mode 100644 index 36edd2179..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/targets/target/host-sources-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/targets/target/host-sources', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/targets/target/host-sources' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/users-test.js b/ui/admin/tests/unit/controllers/scopes/scope/users-test.js deleted file mode 100644 index 47e429a43..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/users-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/users', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/users'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/users/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/users/new-test.js deleted file mode 100644 index 442f19327..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/users/new-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/users/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/users/new'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/users/user-test.js b/ui/admin/tests/unit/controllers/scopes/scope/users/user-test.js deleted file mode 100644 index 65e6446b5..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/users/user-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/users/user', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/users/user'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/users/user/accounts-test.js b/ui/admin/tests/unit/controllers/scopes/scope/users/user/accounts-test.js deleted file mode 100644 index 95604efa2..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/users/user/accounts-test.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | scopes/scope/users/user/accounts', - function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/users/user/accounts' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/workers-test.js b/ui/admin/tests/unit/controllers/scopes/scope/workers-test.js deleted file mode 100644 index 56804d6cf..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/workers-test.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/workers', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/workers'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/workers/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/workers/new-test.js deleted file mode 100644 index 6b272d33e..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/workers/new-test.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/workers/new', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:scopes/scope/workers/new'); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/controllers/scopes/scope/workers/worker-test.js b/ui/admin/tests/unit/controllers/scopes/scope/workers/worker-test.js deleted file mode 100644 index e7392e8e7..000000000 --- a/ui/admin/tests/unit/controllers/scopes/scope/workers/worker-test.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | scopes/scope/users/user', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:scopes/scope/workers/worker' - ); - assert.ok(controller); - }); -}); diff --git a/ui/admin/tests/unit/services/breadcrumbs-test.js b/ui/admin/tests/unit/services/breadcrumbs-test.js new file mode 100644 index 000000000..b3f304ee1 --- /dev/null +++ b/ui/admin/tests/unit/services/breadcrumbs-test.js @@ -0,0 +1,33 @@ +import { module, test } from 'qunit'; +import { setupTest } from 'admin/tests/helpers'; + +module('Unit | Service | breadcrumbs', function (hooks) { + setupTest(hooks); + + test('it exists', function (assert) { + assert.expect(1); + const service = this.owner.lookup('service:breadcrumbs'); + assert.ok(service); + }); + + test('registerContainer properly adds a new container', function (assert) { + assert.expect(1); + const container = { element: 'element' }; + const service = this.owner.lookup('service:breadcrumbs'); + + service.registerContainer(container); + + assert.strictEqual(service.containers[0].element, container.element); + }); + + test('unregisterContainer properly removes an existing container', function (assert) { + assert.expect(1); + const container = { element: 'element' }; + const service = this.owner.lookup('service:breadcrumbs'); + + service.registerContainer(container); + service.unregisterContainer(container); + + assert.strictEqual(service.containers.length, 0); + }); +});