Skip to content

Commit

Permalink
Changed position in gutter menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenomitch authored and philrenaud committed May 7, 2024
1 parent 380448c commit 2066e6c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ui/app/components/sentinel-policy-editor.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<button
class="button is-light is-compact"
type="button"
{{on "click" (perform this.testIt)}}
{{on "click" this.testIt}}
data-test-edit-job
>
Test it!
Expand Down
34 changes: 17 additions & 17 deletions ui/app/templates/components/gutter-menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,6 @@
</LinkTo>
</li>
{{/if}}
{{#if (can "read sentinel-policy")}}
<li
{{keyboard-shortcut
menuLevel=true
pattern=(array "g" "s" "p")
action=(action this.transitionTo 'sentinel')
}}
>
<LinkTo
@route="sentinel-policies"
@activeClass="is-active"
data-test-gutter-link="optimize"
>
Sentinel
</LinkTo>
</li>
{{/if}}
<li {{keyboard-shortcut menuLevel=true pattern=(array "g" "r") }}>
<LinkTo
@route="csi"
Expand All @@ -102,6 +85,23 @@
</LinkTo>
</li>
{{/if}}
{{#if (can "read sentinel-policy")}}
<li
{{keyboard-shortcut
menuLevel=true
pattern=(array "g" "x")
action=(action this.transitionTo 'sentinel-policies')
}}
>
<LinkTo
@route="sentinel-policies"
@activeClass="is-active"
data-test-gutter-link="optimize"
>
Sentinel
</LinkTo>
</li>
{{/if}}
</ul>
<p class="menu-label">
Cluster
Expand Down

0 comments on commit 2066e6c

Please sign in to comment.