diff --git a/awx/ui/client/features/_index.less b/awx/ui/client/features/_index.less index 59e8e4630b..04be5b31bb 100644 --- a/awx/ui/client/features/_index.less +++ b/awx/ui/client/features/_index.less @@ -1,3 +1,2 @@ -@import 'credentials/_index'; @import 'output/_index'; @import 'users/tokens/_index'; diff --git a/awx/ui/client/features/applications/applications.strings.js b/awx/ui/client/features/applications/applications.strings.js index 0194efbf42..8dfcf521a2 100644 --- a/awx/ui/client/features/applications/applications.strings.js +++ b/awx/ui/client/features/applications/applications.strings.js @@ -16,6 +16,10 @@ function ApplicationsStrings (BaseString) { USERS: t.s('Tokens') }; + ns.tooltips = { + ADD: t.s('Create a new Application') + }; + ns.add = { PANEL_TITLE: t.s('NEW APPLICATION') }; diff --git a/awx/ui/client/features/applications/list-applications.controller.js b/awx/ui/client/features/applications/list-applications.controller.js index fd67589a08..8a6ad5a8bf 100644 --- a/awx/ui/client/features/applications/list-applications.controller.js +++ b/awx/ui/client/features/applications/list-applications.controller.js @@ -38,6 +38,10 @@ function ListApplicationsController ( vm.applicationsCount = dataset.count; }); + vm.tooltips = { + add: strings.get('tooltips.ADD') + }; + vm.getModified = app => { const modified = _.get(app, 'modified'); diff --git a/awx/ui/client/features/applications/list-applications.view.html b/awx/ui/client/features/applications/list-applications.view.html index 1803e5ab66..c1ab24bd75 100644 --- a/awx/ui/client/features/applications/list-applications.view.html +++ b/awx/ui/client/features/applications/list-applications.view.html @@ -23,6 +23,9 @@ type="button" ui-sref="applications.add" class="at-Button--add" + id="button-add" + aw-tool-tip="{{vm.tooltips.add}}" + data-placement="top" aria-haspopup="true" aria-expanded="false"> diff --git a/awx/ui/client/features/credentials/_index.less b/awx/ui/client/features/credentials/_index.less deleted file mode 100644 index 87f746b2c3..0000000000 --- a/awx/ui/client/features/credentials/_index.less +++ /dev/null @@ -1,3 +0,0 @@ -.at-CredentialsPermissions { - margin-top: 50px; -} diff --git a/awx/ui/client/features/credentials/legacy.credentials.js b/awx/ui/client/features/credentials/legacy.credentials.js index 07cee1329d..27428feb7b 100644 --- a/awx/ui/client/features/credentials/legacy.credentials.js +++ b/awx/ui/client/features/credentials/legacy.credentials.js @@ -69,8 +69,8 @@ function LegacyCredentialsService () { ngClick: '$state.go(\'.add\')', label: 'Add', awToolTip: N_('Add a permission'), - actionClass: 'btn List-buttonSubmit', - buttonContent: `+ ${N_('ADD')}`, + actionClass: 'at-Button--add', + actionId: 'button-add', ngShow: '(credential_obj.summary_fields.user_capabilities.edit || canAdd)' } }, diff --git a/awx/ui/client/features/templates/templates.strings.js b/awx/ui/client/features/templates/templates.strings.js index 896cfd87bd..3bb2d38b66 100644 --- a/awx/ui/client/features/templates/templates.strings.js +++ b/awx/ui/client/features/templates/templates.strings.js @@ -10,7 +10,6 @@ function TemplatesStrings (BaseString) { ns.list = { PANEL_TITLE: t.s('TEMPLATES'), - ADD_BUTTON_LABEL: t.s('ADD'), ADD_DD_JT_LABEL: t.s('Job Template'), ADD_DD_WF_LABEL: t.s('Workflow Template'), ROW_ITEM_LABEL_ACTIVITY: t.s('Activity'), diff --git a/awx/ui/client/features/templates/templatesList.view.html b/awx/ui/client/features/templates/templatesList.view.html index e68ddef8fb..5a00912663 100644 --- a/awx/ui/client/features/templates/templatesList.view.html +++ b/awx/ui/client/features/templates/templatesList.view.html @@ -14,13 +14,12 @@