2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
2024-05-31 11:29:24 -07:00
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
2023-03-01 09:39:41 -06:00
|
|
|
}}
|
|
|
|
|
|
2020-11-16 14:57:42 -05:00
|
|
|
{{page-title (app-name)}}
|
2020-07-23 09:37:06 -04:00
|
|
|
|
2020-06-10 14:21:26 -04:00
|
|
|
<Rose::Layout::Global as |layout|>
|
|
|
|
|
|
|
|
|
|
<layout.header>
|
2022-09-07 16:21:27 -04:00
|
|
|
<Rose::Header class={{if (is-loading) ' loading'}} as |header|>
|
2022-02-08 14:56:54 -05:00
|
|
|
<header.brand @logo='logo-app' @text={{(app-name)}} />
|
2020-10-01 13:15:45 -04:00
|
|
|
|
2020-07-24 17:49:42 -04:00
|
|
|
{{#if this.session.isAuthenticated}}
|
2020-10-26 14:12:16 -04:00
|
|
|
<header.nav>
|
2022-10-25 11:13:19 +02:00
|
|
|
<HeaderNav />
|
2020-10-02 10:55:51 -04:00
|
|
|
</header.nav>
|
2020-09-27 21:20:57 -04:00
|
|
|
|
2020-07-24 17:49:42 -04:00
|
|
|
<header.utilities as |utilities|>
|
|
|
|
|
<utilities.dropdown
|
2020-10-01 14:15:20 -04:00
|
|
|
@text={{this.session.data.authenticated.username}}
|
2021-09-16 14:03:26 -07:00
|
|
|
@icon='flight-icons/svg/user-circle-16'
|
2021-05-11 14:13:24 -04:00
|
|
|
as |dropdown|
|
2020-07-24 17:49:42 -04:00
|
|
|
>
|
2021-05-11 14:13:24 -04:00
|
|
|
<dropdown.link @route='account.change-password'>
|
2020-09-17 10:24:22 -04:00
|
|
|
{{t 'actions.change-password'}}
|
2020-10-01 21:51:37 -04:00
|
|
|
</dropdown.link>
|
2020-10-07 10:57:50 -04:00
|
|
|
<dropdown.separator />
|
2020-11-04 13:51:37 -05:00
|
|
|
|
2024-03-04 10:13:59 -08:00
|
|
|
<dropdown.button {{on 'click' this.invalidateSession}}>
|
2020-07-24 17:49:42 -04:00
|
|
|
{{t 'actions.deauthenticate'}}
|
|
|
|
|
</dropdown.button>
|
2020-11-04 13:51:37 -05:00
|
|
|
|
|
|
|
|
<dropdown.separator />
|
|
|
|
|
|
2023-03-17 14:34:37 -07:00
|
|
|
<dropdown.section @title={{t 'actions.toggle-color-theme'}}>
|
2024-11-19 13:03:29 -08:00
|
|
|
<Hds::Form::Radio::Group
|
|
|
|
|
@name='theme'
|
|
|
|
|
class='dropdown-radio-btn'
|
|
|
|
|
as |G|
|
|
|
|
|
>
|
|
|
|
|
{{#each this.themes as |theme|}}
|
|
|
|
|
<G.RadioField
|
|
|
|
|
@value={{theme.value}}
|
|
|
|
|
checked={{eq this.session.data.theme theme.value}}
|
|
|
|
|
{{on 'change' (fn this.toggleTheme theme.value)}}
|
|
|
|
|
as |F|
|
|
|
|
|
>
|
|
|
|
|
<F.Label>{{t (concat 'themes.' theme.label)}}</F.Label>
|
|
|
|
|
</G.RadioField>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</Hds::Form::Radio::Group>
|
2020-11-04 16:28:07 -05:00
|
|
|
</dropdown.section>
|
2020-11-04 13:51:37 -05:00
|
|
|
|
2020-07-24 17:49:42 -04:00
|
|
|
</utilities.dropdown>
|
2023-03-17 14:34:37 -07:00
|
|
|
|
|
|
|
|
{{#if (feature-flag 'dev-edition-toggle')}}
|
|
|
|
|
<utilities.dropdown
|
|
|
|
|
data-test-dev-edition-toggle
|
|
|
|
|
@text={{t
|
|
|
|
|
'titles.feature-edition'
|
2023-03-31 17:38:17 -07:00
|
|
|
edition=this.featureEdition.edition
|
2023-03-17 14:34:37 -07:00
|
|
|
}}
|
|
|
|
|
@icon='flight-icons/svg/layers-16'
|
|
|
|
|
as |dropdown|
|
|
|
|
|
>
|
|
|
|
|
<dropdown.section @title={{t 'actions.toggle-feature-edition'}}>
|
2024-11-19 13:03:29 -08:00
|
|
|
<Hds::Form::Radio::Group
|
|
|
|
|
@name='edition'
|
|
|
|
|
class='dropdown-radio-btn'
|
|
|
|
|
as |G|
|
|
|
|
|
>
|
|
|
|
|
{{#each this.featureEdition.editions as |edition|}}
|
|
|
|
|
<G.RadioField
|
|
|
|
|
@value={{edition}}
|
|
|
|
|
checked={{eq this.featureEdition.edition edition}}
|
|
|
|
|
{{on 'change' (fn this.toggleEdition edition)}}
|
|
|
|
|
as |F|
|
|
|
|
|
>
|
|
|
|
|
<F.Label>{{edition}}</F.Label>
|
|
|
|
|
</G.RadioField>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</Hds::Form::Radio::Group>
|
|
|
|
|
|
2023-03-17 14:34:37 -07:00
|
|
|
</dropdown.section>
|
2023-03-31 17:38:17 -07:00
|
|
|
<dropdown.separator />
|
|
|
|
|
<dropdown.section @title={{t 'actions.toggle-licensed-features'}}>
|
|
|
|
|
<Rose::Form as |form|>
|
|
|
|
|
{{#each this.featureEdition.licensedFeatures as |feature|}}
|
|
|
|
|
<dropdown.item>
|
|
|
|
|
<form.checkbox
|
|
|
|
|
@label={{feature}}
|
|
|
|
|
@checked={{feature-flag feature}}
|
2024-03-04 10:13:59 -08:00
|
|
|
@onChange={{fn this.toggleFeature feature}}
|
2023-03-31 17:38:17 -07:00
|
|
|
/>
|
|
|
|
|
</dropdown.item>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</Rose::Form>
|
|
|
|
|
</dropdown.section>
|
2023-03-17 14:34:37 -07:00
|
|
|
</utilities.dropdown>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2020-07-24 17:49:42 -04:00
|
|
|
</header.utilities>
|
2020-10-01 13:15:45 -04:00
|
|
|
|
2020-07-24 17:49:42 -04:00
|
|
|
{{/if}}
|
2020-10-01 13:15:45 -04:00
|
|
|
|
2020-05-28 09:14:51 -04:00
|
|
|
</Rose::Header>
|
2020-06-10 14:21:26 -04:00
|
|
|
</layout.header>
|
2020-06-08 11:32:19 -04:00
|
|
|
|
2020-06-24 10:40:00 -04:00
|
|
|
<layout.body>
|
2020-06-24 10:57:56 -04:00
|
|
|
{{outlet}}
|
2020-06-24 10:40:00 -04:00
|
|
|
</layout.body>
|
2020-05-30 12:42:10 -04:00
|
|
|
|
2020-06-05 15:44:02 -04:00
|
|
|
</Rose::Layout::Global>
|
2020-05-29 19:44:46 -04:00
|
|
|
|
2022-08-31 10:24:25 -07:00
|
|
|
{{#if this.flashMessages.queue}}
|
2024-11-19 15:18:18 -08:00
|
|
|
<div class='ember-notify-cn'>
|
2022-08-31 10:24:25 -07:00
|
|
|
{{#each this.flashMessages.queue as |flash|}}
|
2024-11-19 15:18:18 -08:00
|
|
|
<div class='ember-notify-show ember-notify'>
|
|
|
|
|
<Hds::Toast
|
|
|
|
|
@color={{map-type-to-color flash.notificationType}}
|
|
|
|
|
@onDismiss={{fn flash.dismiss flash}}
|
|
|
|
|
data-test-toast-notification
|
|
|
|
|
as |T|
|
2022-08-31 10:24:25 -07:00
|
|
|
>
|
2024-11-19 15:18:18 -08:00
|
|
|
<T.Title>{{t (concat 'states.' flash.notificationType)}}</T.Title>
|
|
|
|
|
<T.Description>{{flash.message}}</T.Description>
|
|
|
|
|
</Hds::Toast>
|
2022-08-31 10:24:25 -07:00
|
|
|
</div>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
2020-10-14 09:33:44 -04:00
|
|
|
|
2020-10-15 16:10:46 -04:00
|
|
|
<PendingConfirmations as |confirmation accept deny|>
|
2024-12-20 14:16:43 -05:00
|
|
|
<Hds::Modal @color='warning' as |M|>
|
|
|
|
|
<M.Header @icon='alert-triangle' @onDismiss={{deny}}>
|
|
|
|
|
{{if
|
|
|
|
|
confirmation.options.title
|
|
|
|
|
(t confirmation.options.title)
|
|
|
|
|
(t 'actions.confirm')
|
|
|
|
|
}}
|
|
|
|
|
</M.Header>
|
|
|
|
|
<M.Body>
|
|
|
|
|
<Hds::Text::Body @tag='p'>
|
|
|
|
|
{{confirmation.text}}
|
|
|
|
|
</Hds::Text::Body>
|
|
|
|
|
</M.Body>
|
|
|
|
|
<M.Footer>
|
|
|
|
|
<Hds::ButtonSet>
|
|
|
|
|
<Hds::Button
|
|
|
|
|
@text={{if
|
|
|
|
|
confirmation.options.confirm
|
|
|
|
|
(t confirmation.options.confirm)
|
|
|
|
|
(t 'actions.ok')
|
|
|
|
|
}}
|
|
|
|
|
@color='primary'
|
|
|
|
|
{{on 'click' accept}}
|
|
|
|
|
/>
|
|
|
|
|
<Hds::Button
|
|
|
|
|
@text={{t 'actions.cancel'}}
|
|
|
|
|
@color='secondary'
|
|
|
|
|
{{on 'click' deny}}
|
|
|
|
|
/>
|
|
|
|
|
</Hds::ButtonSet>
|
|
|
|
|
</M.Footer>
|
|
|
|
|
</Hds::Modal>
|
2022-10-06 11:41:12 -04:00
|
|
|
</PendingConfirmations>
|