diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 87c2966294..4d1a6270e4 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -439,6 +439,7 @@ storage-bucket: plugin-types: aws: Amazon S3 minio: MinIO + unknown: Unknown form: scope: label: Scope diff --git a/ui/admin/app/routes/scopes/scope/targets/target/index.js b/ui/admin/app/routes/scopes/scope/targets/target/index.js index 8e68d20afa..14699e7593 100644 --- a/ui/admin/app/routes/scopes/scope/targets/target/index.js +++ b/ui/admin/app/routes/scopes/scope/targets/target/index.js @@ -29,8 +29,20 @@ export default class ScopesScopeTargetsTargetIndexRoute extends Route { 'storage-bucket', storage_bucket_id, ); - const storage_bucket_name = storageBucket.displayName; - controller.set('storage_bucket_name', storage_bucket_name); + const { + displayName: name, + plugin: { name: plugin_name }, + isAWS, + isMinIO, + isUnknown, + } = storageBucket; + let icon; + if (isAWS) { + icon = 'aws'; + } else if (isMinIO) { + icon = 'cloud-upload'; + } + controller.set('storage_bucket', { name, plugin_name, icon, isUnknown }); } } } diff --git a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs index 1f9ba53595..ecf13b02cb 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs @@ -4,7 +4,6 @@ }} - @@ -36,7 +35,9 @@ {{#if @model.aliases}}
-

{{t 'resources.alias.title_plural'}}

+

+ {{t 'resources.alias.title_plural'}} +

{{t 'resources.alias.form.sidebar.help'}}

@@ -92,7 +93,9 @@ {{else}} {{#if (can 'create model' this.globalScope collection='aliases')}}
-

{{t 'resources.alias.title_plural'}}

+

+ {{t 'resources.alias.title_plural'}} +

{{t 'resources.alias.form.sidebar.help'}}

@@ -108,31 +111,47 @@ {{/if}}
{{#if (and @model.isSSH (feature-flag 'ssh-session-recording'))}} -

{{t 'resources.target.form.sidebar.label'}}

+

+ {{t 'resources.target.form.sidebar.label'}} +

{{t 'resources.target.form.sidebar.help'}}

{{#if @model.enable_session_recording}} - - - - - - + {{#unless this.storage_bucket.isUnknown}} + + + + + + + {{/unless}} + {{#if this.storage_bucket.isUnknown}} + + + {{t 'resources.storage-bucket.plugin-types.unknown'}} + + + {{/if}} {{else}}