From 0169700b33ced64b64315111cb49b79a47e1e3d3 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Tue, 22 Sep 2020 18:16:54 -0400 Subject: [PATCH] refactor: move account and auth-method action strings --- .../scopes/scope/auth-methods/auth-method/-actions.hbs | 6 +++--- .../auth-methods/auth-method/accounts/account/-actions.hbs | 4 ++-- ui/core/translations/actions/en-us.yaml | 3 --- ui/core/translations/resources/en-us.yaml | 6 ++++++ 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs index 71a762a46..06335bd6d 100644 --- a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs +++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs @@ -3,13 +3,13 @@ @route="scopes.scope.auth-methods.auth-method.accounts.new" @model={{@model}} > - {{t "actions.add-account"}} + {{t "resources.account.actions.create"}} - {{t 'actions.delete-auth-method'}} + {{t 'resources.auth-method.actions.delete'}} - \ No newline at end of file + diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-actions.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-actions.hbs index 90b6d2189..ea1b0115d 100644 --- a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-actions.hbs +++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-actions.hbs @@ -4,6 +4,6 @@ @disabled={{@model.canSave}} {{on "click" (route-action "delete" @model)}} > - {{t 'actions.delete-account'}} + {{t 'actions.delete'}} - \ No newline at end of file + diff --git a/ui/core/translations/actions/en-us.yaml b/ui/core/translations/actions/en-us.yaml index 018b94b48..448810a32 100644 --- a/ui/core/translations/actions/en-us.yaml +++ b/ui/core/translations/actions/en-us.yaml @@ -16,17 +16,14 @@ delete-group: Delete group delete-role: Delete role delete-project: Delete project delete-host-catalog: Delete host catalog -delete-auth-method: Delete auth method delete-host-set: Delete host set delete-host: Delete host delete-target: Delete target -delete-account: Delete account add-host-set: Create Host Set add-host: Create Host add-host-sets: Add Host Sets add-principals: Add Principals add-members: Add Members add-hosts: Add Hosts -add-account: Create Account set-password: Set Password change-password: Change Password diff --git a/ui/core/translations/resources/en-us.yaml b/ui/core/translations/resources/en-us.yaml index acea170dd..5a1e3ac32 100644 --- a/ui/core/translations/resources/en-us.yaml +++ b/ui/core/translations/resources/en-us.yaml @@ -10,6 +10,9 @@ account: description: Set a password for the account. types: password: Password + actions: + create: Create Account + delete: Delete Account auth-method: title: Auth Method title_plural: Auth Methods @@ -23,6 +26,9 @@ auth-method: description: No authentication methods were found for this scope. Switch scopes and try again. types: password: Password + actions: + create: Create Auth Method + delete: Delete Auth Method user: User users: Users role: Role