* Refactor: Rose::Page::Layout - header, actions and breadcrumbs (#2813) * refactor: 💡 page::layout- header,breadcrumb and actions * refactor: 💡 added new class for the page layout, fixed a11y * refactor: 💡 addressed comments * refactor: 💡 moved copy snippet to PH.Generic * refactor: 💡 addressed comments * Refactor: Rose::Page::Layout - header, actions and breadcrumbs Part 2 (#2825) * refactor: 💡 rose page layout header * refactor: 💡 removed extra classes * Refactor: Rose::Page::Layout - header, actions and breadcrumbs Final Part (#2840) * refactor: 💡 rose page layout header * Refactor: Rose::Page::Layout - header, actions and breadcrumbs (#2813) * refactor: 💡 page::layout- header,breadcrumb and actions * refactor: 💡 added new class for the page layout, fixed a11y * refactor: 💡 addressed comments * refactor: 💡 moved copy snippet to PH.Generic * refactor: 💡 addressed comments * Refactor: Rose::Page::Layout - header, actions and breadcrumbs Part 2 (#2825) * refactor: 💡 rose page layout header * refactor: 💡 removed extra classes * refactor: 💡 fixed a11y heading, actions dropdown * refactor: 💡 fixed page header * refactor: 💡 fix heading margin and failing tests * refactor: 💡 add back margin for hds header tags * refactor: 💡 fix style
40 lines
934 B
JavaScript
40 lines
934 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Controller, { inject as controller } from '@ember/controller';
|
|
|
|
export default class ScopesScopeEditController extends Controller {
|
|
@controller('scopes/scope/index') scopes;
|
|
|
|
get scopeTypes() {
|
|
return [
|
|
{
|
|
key: 'isGlobal',
|
|
title: 'resources.global.title',
|
|
description: 'resources.global.description',
|
|
doc: 'global',
|
|
},
|
|
{
|
|
key: 'isOrg',
|
|
title: 'resources.org.title',
|
|
description: 'resources.org.description',
|
|
doc: 'org',
|
|
},
|
|
{
|
|
key: 'isProject',
|
|
title: 'resources.project.title',
|
|
description: 'resources.project.description',
|
|
doc: 'project',
|
|
},
|
|
{
|
|
key: 'isScope',
|
|
title: 'resources.scope.title',
|
|
description: 'resources.scope.description',
|
|
doc: 'scope',
|
|
},
|
|
];
|
|
}
|
|
}
|