mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
* Gallery allows picking stuff * Small fixes * added sentinel templates * Can set enforcement level on policies * Working on the interactive sentinel dev mode * Very rough development flow on FE * Changed position in gutter menu * More sentinel stuff * PR cleanup: removed testmode, removed unneeded mixins and deps * Heliosification * Index-level sentinel policy deletion and page title fixes * Makes the Canaries sentinel policy real and then comments out the unfinished ones * rename Access Control to Administration in prep for moving Sentinel Policies and Node Pool admin there * Sentinel policies moved within the Administration section * Mirage fixture for sentinel policy endpoints * Description length check and 500 prevention * Sync review PR feedback addressed, implied butons on radio cards * Cull un-used sentinel policies --------- Co-authored-by: Mike Nomitch <mail@mikenomitch.com>
33 lines
959 B
Handlebars
33 lines
959 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<Breadcrumb @crumb={{hash label=this.model.name args=(array "administration.sentinel-policies.policy" this.model.name)}} />
|
|
{{page-title (concat "Sentinel Policy: " this.model.name)}}
|
|
|
|
<section class="section">
|
|
<Hds::PageHeader class="variable-title" as |PH|>
|
|
<PH.Title>{{this.model.name}}</PH.Title>
|
|
<PH.Actions>
|
|
{{#if (can "destroy sentinel-policy")}}
|
|
<div>
|
|
<TwoStepButton
|
|
data-test-delete-policy
|
|
@alignRight={{true}}
|
|
@idleText="Delete Sentinel Policy"
|
|
@cancelText="Cancel"
|
|
@confirmText="Yes, Delete Policy"
|
|
@confirmationMessage="Are you sure?"
|
|
@awaitingConfirmation={{this.deletePolicy.isRunning}}
|
|
@disabled={{this.deletePolicy.isRunning}}
|
|
@onConfirm={{perform this.deletePolicy}}
|
|
/>
|
|
</div>
|
|
{{/if}}
|
|
</PH.Actions>
|
|
</Hds::PageHeader>
|
|
|
|
<SentinelPolicyEditor @policy={{this.model}} />
|
|
</section>
|