diff --git a/ui/admin/app/components/auth-methods/auth-method/accounts/account/actions/index.hbs b/ui/admin/app/components/auth-methods/auth-method/accounts/account/actions/index.hbs index ec74baae3..6a0f80770 100644 --- a/ui/admin/app/components/auth-methods/auth-method/accounts/account/actions/index.hbs +++ b/ui/admin/app/components/auth-methods/auth-method/accounts/account/actions/index.hbs @@ -6,10 +6,8 @@ {{#if (can 'delete account' @model)}} - + {{t + 'resources.account.actions.delete' + }} {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/auth-methods/auth-method/actions/index.hbs b/ui/admin/app/components/auth-methods/auth-method/actions/index.hbs index a8fbd12d8..5586c0a22 100644 --- a/ui/admin/app/components/auth-methods/auth-method/actions/index.hbs +++ b/ui/admin/app/components/auth-methods/auth-method/actions/index.hbs @@ -43,39 +43,37 @@ {{#if @model.isPrimary}} - + + {{t 'resources.auth-method.actions.remove-as-primary'}} + {{else}} - + + {{t 'resources.auth-method.actions.make-primary'}} + {{/if}} {{#if (can 'create model' @model collection='accounts')}} + > + {{t 'resources.account.actions.create'}} + {{/if}} {{#if (can 'create model' @model collection='managed-groups')}} {{#if (or @model.isOIDC @model.isLDAP)}} + > + {{t 'resources.managed-group.actions.create'}} + {{/if}} {{/if}} {{#if (can 'delete auth-method' @model)}} - + + {{t 'resources.auth-method.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/auth-methods/auth-method/managed-groups/managed-group/actions/index.hbs b/ui/admin/app/components/auth-methods/auth-method/managed-groups/managed-group/actions/index.hbs index ce1240c41..84dfe9421 100644 --- a/ui/admin/app/components/auth-methods/auth-method/managed-groups/managed-group/actions/index.hbs +++ b/ui/admin/app/components/auth-methods/auth-method/managed-groups/managed-group/actions/index.hbs @@ -6,10 +6,8 @@ {{#if (can 'delete model' @model)}} - + {{t + 'resources.managed-group.actions.delete' + }} {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs b/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs index fe93c9560..f205e1110 100644 --- a/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs +++ b/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs @@ -7,21 +7,21 @@ {{#if (can 'create model' @model collection='credential-libraries')}} + > + {{t 'resources.credential-library.actions.create'}} + {{/if}} {{#if (can 'create model' @model collection='credentials')}} + > + {{t 'resources.credential.actions.create'}} + {{/if}} {{#if (can 'delete model' @model)}} - + + {{t 'resources.credential-store.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/groups/group/actions/index.hbs b/ui/admin/app/components/groups/group/actions/index.hbs index 9c81696ff..813094ec1 100644 --- a/ui/admin/app/components/groups/group/actions/index.hbs +++ b/ui/admin/app/components/groups/group/actions/index.hbs @@ -6,18 +6,18 @@ {{#if (can 'addMembers group' @model)}} - + + {{t 'resources.group.actions.add-members'}} + {{/if}} {{#if (can 'delete model' @model)}} + > + {{t 'resources.group.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/host-catalogs/host-catalog/actions/index.hbs b/ui/admin/app/components/host-catalogs/host-catalog/actions/index.hbs index ee745943f..61d85b43d 100644 --- a/ui/admin/app/components/host-catalogs/host-catalog/actions/index.hbs +++ b/ui/admin/app/components/host-catalogs/host-catalog/actions/index.hbs @@ -9,22 +9,22 @@ + > + {{t 'resources.host.actions.create'}} + {{/if}} {{#if (can 'create model' @model collection='host-sets')}} + > + {{t 'resources.host-set.actions.create'}} + {{/if}} {{#if (can 'delete model' @model)}} - + + {{t 'resources.host-catalog.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/actions/index.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/actions/index.hbs index 932629510..d50ee384f 100644 --- a/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/actions/index.hbs +++ b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/actions/index.hbs @@ -8,20 +8,20 @@ {{#if (can 'addHosts hostSet' @model)}} + > + {{t 'resources.host-set.actions.create-and-add-host'}} + + > + {{t 'resources.host-set.actions.add-hosts'}} + {{/if}} {{#if (can 'delete model' @model)}} - + + {{t 'resources.host-set.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/actions/index.hbs b/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/actions/index.hbs index 631a7f321..3c77294cd 100644 --- a/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/actions/index.hbs +++ b/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/actions/index.hbs @@ -6,10 +6,8 @@ {{#if (can 'delete model' @model)}} - + {{t + 'resources.host.actions.delete' + }} {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/roles/role/actions/index.hbs b/ui/admin/app/components/roles/role/actions/index.hbs index caf919ce4..3f1aa3f0d 100644 --- a/ui/admin/app/components/roles/role/actions/index.hbs +++ b/ui/admin/app/components/roles/role/actions/index.hbs @@ -7,25 +7,28 @@ {{#if (can 'addPrincipals role' @model)}} + > + {{t 'resources.role.principal.actions.add-principals'}} + {{/if}} {{#if (can 'setGrantScopes role' @model)}} + > + {{t 'resources.role.scope.actions.manage-scopes'}} + {{/if}} {{#if (can 'delete model' @model)}} + > + {{t 'resources.role.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/targets/target/actions/index.hbs b/ui/admin/app/components/targets/target/actions/index.hbs index a4bc5d052..0ce7ac6da 100644 --- a/ui/admin/app/components/targets/target/actions/index.hbs +++ b/ui/admin/app/components/targets/target/actions/index.hbs @@ -6,35 +6,34 @@ {{#if (can 'addHostSources target' @model)}} - + + {{t 'resources.target.actions.add-host-sources'}} + {{/if}} {{#if (can 'addBrokeredCredentialSources target' @model)}} + > + {{t 'resources.target.actions.add-brokered-credential-sources'}} + {{/if}} {{#if (can 'addInjectedApplicationCredentialSources target' @model)}} + {{t 'resources.target.actions.add-injected-application-credential-sources' }} - data-test-add-injected-cred-sources-action - /> + {{/if}} {{#if (can 'delete model' @model)}} - + + {{t 'resources.target.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/users/user/actions/index.hbs b/ui/admin/app/components/users/user/actions/index.hbs index 5ef7527ba..96ca3068f 100644 --- a/ui/admin/app/components/users/user/actions/index.hbs +++ b/ui/admin/app/components/users/user/actions/index.hbs @@ -6,10 +6,9 @@ {{#if (can 'addAccounts user' @model)}} - + + {{t 'resources.user.actions.add-accounts'}} + {{/if}} {{#if (can 'delete model' @model)}} @@ -17,8 +16,9 @@ + > + {{t 'resources.user.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/components/workers/worker/actions/index.hbs b/ui/admin/app/components/workers/worker/actions/index.hbs index 0b8a2abe1..cce6048f3 100644 --- a/ui/admin/app/components/workers/worker/actions/index.hbs +++ b/ui/admin/app/components/workers/worker/actions/index.hbs @@ -6,17 +6,17 @@ {{#if (can 'setWorkerTags worker' @model)}} - + + {{t 'resources.worker.actions.create_tags'}} + {{/if}} {{#if (can 'delete worker' @model)}} + > + {{t 'resources.worker.actions.delete'}} + {{/if}} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/aliases/alias/index.hbs b/ui/admin/app/templates/scopes/scope/aliases/alias/index.hbs index 80be0597b..bd97059fe 100644 --- a/ui/admin/app/templates/scopes/scope/aliases/alias/index.hbs +++ b/ui/admin/app/templates/scopes/scope/aliases/alias/index.hbs @@ -37,17 +37,19 @@ {{#if (and perms.canUpdate @model.destination_id)}} + > + {{t 'actions.clear'}} + {{/if}} {{#if perms.canDelete}} + > + {{t 'actions.delete'}} + {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/aliases/index.hbs b/ui/admin/app/templates/scopes/scope/aliases/index.hbs index 2631db80d..d4cc1d7a3 100644 --- a/ui/admin/app/templates/scopes/scope/aliases/index.hbs +++ b/ui/admin/app/templates/scopes/scope/aliases/index.hbs @@ -121,23 +121,26 @@ + > + {{t 'actions.edit'}} + {{#if B.data.alias.destination_id}} + > + {{t 'actions.clear'}} + {{/if}} {{/if}} {{#if perms.canDelete}} + > + {{t 'actions.delete'}} + {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs index 20b9e281d..4222f2cf2 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs @@ -21,21 +21,20 @@ + >{{t 'resources.auth-method.types.password'}} + >{{t 'resources.auth-method.types.oidc'}} {{#if (feature-flag 'ldap-auth-methods')}} + > + {{t 'resources.auth-method.types.ldap'}} + {{/if}} {{/if}} @@ -150,18 +149,18 @@ /> {{#unless B.data.isPrimary}} + > + {{t 'resources.auth-method.actions.make-primary'}} + {{/unless}} {{#if B.data.isPrimary}} + > + {{t 'resources.auth-method.actions.remove-as-primary'}} + {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs index 1abe1f856..8e361f4b2 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/credential-library/index.hbs @@ -34,10 +34,9 @@ + >{{t 'resources.credential-library.actions.delete'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs index a18aec87d..e746f628a 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credentials/credential/index.hbs @@ -34,9 +34,8 @@ + >{{t 'resources.credential.actions.delete'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/edit.hbs b/ui/admin/app/templates/scopes/scope/edit.hbs index a66fe154a..a9025bb54 100644 --- a/ui/admin/app/templates/scopes/scope/edit.hbs +++ b/ui/admin/app/templates/scopes/scope/edit.hbs @@ -60,15 +60,14 @@ {{t (if @model.isOrg 'resources.org.actions.delete' 'resources.project.actions.delete' ) - }} - {{on 'click' (fn this.scopes.delete @model)}} - /> + }} {{/if}} @@ -165,17 +164,15 @@ + >{{t 'actions.view'}} + >{{t 'resources.policy.actions.detach'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/groups/group/members.hbs b/ui/admin/app/templates/scopes/scope/groups/group/members.hbs index 491548518..b10c84277 100644 --- a/ui/admin/app/templates/scopes/scope/groups/group/members.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/group/members.hbs @@ -75,12 +75,11 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs index fb7a08203..72f63cb50 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs @@ -74,13 +74,12 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/policies/index.hbs b/ui/admin/app/templates/scopes/scope/policies/index.hbs index e3c722755..34b5f8d99 100644 --- a/ui/admin/app/templates/scopes/scope/policies/index.hbs +++ b/ui/admin/app/templates/scopes/scope/policies/index.hbs @@ -97,18 +97,20 @@ + > + {{t 'actions.edit'}} + {{/if}} {{#if (and perms.canRead perms.canDelete)}} {{/if}} {{#if perms.canDelete}} + > + {{t 'resources.policy.actions.delete'}} + {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs b/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs index b9a743432..ba293dd21 100644 --- a/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/role/principals.hbs @@ -83,12 +83,11 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs index 70e76c213..087858f31 100644 --- a/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs +++ b/ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/index.hbs @@ -24,17 +24,17 @@ /> + >{{t 'resources.policy.actions.update'}} {{#if (can 'delete session-recording' @model.sessionRecording)}} + > + {{t 'resources.policy.actions.delete_recording'}} + {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs index 058e2ea2d..6104e2a1a 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets/index.hbs @@ -109,18 +109,20 @@ + > + {{t 'actions.edit'}} + {{/if}} {{#if (and perms.canRead perms.canDelete)}} {{/if}} {{#if perms.canDelete}} + > + {{t 'resources.storage-bucket.actions.delete'}} + {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs b/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs index b80fd22aa..746a4cd78 100644 --- a/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs +++ b/ui/admin/app/templates/scopes/scope/storage-buckets/storage-bucket/index.hbs @@ -21,10 +21,9 @@ + >{{t 'actions.delete'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs index a0e4f18fd..4adf3821a 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/brokered-credential-sources.hbs @@ -87,7 +87,6 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs index 08e669d00..3b4524e16 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs @@ -77,12 +77,11 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs index 9c63210ce..0a4e31f41 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/injected-application-credential-sources.hbs @@ -91,7 +91,6 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/targets/target/manage-alias.hbs b/ui/admin/app/templates/scopes/scope/targets/target/manage-alias.hbs index 8f48de53b..33717ccf1 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/manage-alias.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/manage-alias.hbs @@ -44,17 +44,17 @@ @color='secondary' /> {{#if (and perms.canUpdate @model.destination_id)}} - + + {{t 'actions.clear'}} + {{/if}} {{#if perms.canDelete}} + > + {{t 'actions.delete'}} + {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs b/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs index f773afe14..b750196fc 100644 --- a/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs +++ b/ui/admin/app/templates/scopes/scope/users/user/accounts.hbs @@ -79,12 +79,11 @@ /> + >{{t 'actions.remove'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/workers/worker/tags.hbs b/ui/admin/app/templates/scopes/scope/workers/worker/tags.hbs index 37c4150cb..f20d21ad1 100644 --- a/ui/admin/app/templates/scopes/scope/workers/worker/tags.hbs +++ b/ui/admin/app/templates/scopes/scope/workers/worker/tags.hbs @@ -87,16 +87,18 @@ /> {{#if perms.canEdit}} + > + {{t 'resources.worker.tags.edit.title'}} + {{/if}} {{#if perms.canRemove}} + > + {{t 'resources.worker.tags.actions.remove'}} + {{/if}} {{/if}} diff --git a/ui/desktop/app/components/session/proxy-url/index.hbs b/ui/desktop/app/components/session/proxy-url/index.hbs index 36b729fe2..e3cc015e4 100644 --- a/ui/desktop/app/components/session/proxy-url/index.hbs +++ b/ui/desktop/app/components/session/proxy-url/index.hbs @@ -7,7 +7,6 @@ + >{{t 'resources.session.proxy-url.address-port'}} + >{{t 'resources.session.proxy-url.ssh'}} {{#if this.isAddressAndPort}}