feat: 🎸 target session recording configure on edit mode (#144)
* feat: 🎸 target session recording sidebar
This commit is contained in:
1 parent
f0e1101479
commit
971ab2be61
3 files changed
+60
-5
No files matched your search
@@ -384,6 +384,7 @@ target:
|
||||
add-injected-application-credential-sources: Add Injected Application Credentials
|
||||
remove-address: Remove address and save
|
||||
enable-session-recording: Enable Session Recording
|
||||
enable-recording: Enable recording
|
||||
types:
|
||||
tcp: Generic TCP
|
||||
ssh: SSH
|
||||
@@ -400,6 +401,9 @@ target:
|
||||
worker_filter:
|
||||
label: Worker Filter
|
||||
help: Deprecated. Boolean expression to filter the workers that are allowed to satisfy this request.
|
||||
sidebar:
|
||||
label: Session Recording
|
||||
help: Record SSH sessions on this target and save them to an Amazon S3 bucket.
|
||||
questions:
|
||||
delete-host-sources:
|
||||
title: Remove associated host sources?
|
||||
|
||||
@@ -643,6 +643,27 @@
|
||||
}
|
||||
}
|
||||
|
||||
// target sidebar
|
||||
.target-sidebar {
|
||||
.title-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
|
||||
.hds-button {
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
color: var(--token-form-helper-text-color);
|
||||
font-weight: var(--token-typography-font-weight-normal);
|
||||
font-size: var(--token-typography-body-200-font-size);
|
||||
}
|
||||
}
|
||||
|
||||
.key-value-list {
|
||||
border: 0;
|
||||
|
||||
|
||||
@@ -22,11 +22,41 @@
|
||||
</page.actions>
|
||||
|
||||
<page.body>
|
||||
<Form::Target
|
||||
@model={{@model}}
|
||||
@submit={{route-action 'saveWithAddress' @model}}
|
||||
@cancel={{route-action 'cancel' @model}}
|
||||
/>
|
||||
<Layout::Sidebar as |sb|>
|
||||
<sb.Body>
|
||||
<Form::Target
|
||||
@model={{@model}}
|
||||
@submit={{route-action 'saveWithAddress' @model}}
|
||||
@cancel={{route-action 'cancel' @model}}
|
||||
/>
|
||||
</sb.Body>
|
||||
|
||||
{{#if (can 'setStorageBucket target' @model)}}
|
||||
<sb.Sidebar>
|
||||
<div class='target-sidebar'>
|
||||
<div class='title-wrapper'>
|
||||
<h3>{{t 'resources.target.form.sidebar.label'}}</h3>
|
||||
<Hds::Button
|
||||
@color='secondary'
|
||||
@text='settings'
|
||||
@isIconOnly={{true}}
|
||||
@icon='settings'
|
||||
@route='scopes.scope.targets.target.enable-session-recording'
|
||||
/>
|
||||
</div>
|
||||
<p class='description'>
|
||||
{{t 'resources.target.form.sidebar.help'}}
|
||||
</p>
|
||||
<Hds::Button
|
||||
@text={{t 'resources.target.actions.enable-recording'}}
|
||||
@color='secondary'
|
||||
@route='scopes.scope.targets.target.enable-session-recording'
|
||||
/>
|
||||
</div>
|
||||
</sb.Sidebar>
|
||||
{{/if}}
|
||||
</Layout::Sidebar>
|
||||
|
||||
</page.body>
|
||||
|
||||
</Rose::Layout::Page>
|
||||
Reference in new issue
Block a user