1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

utilize transation for instance groups jobs sub panels titles

and fix a few linting errors
This commit is contained in:
John Mitchell 2018-03-26 10:07:47 -04:00
parent f3329c8cce
commit 01982e7eab
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94
5 changed files with 11 additions and 9 deletions

View File

@ -23,8 +23,12 @@ function InstanceGroupsStrings (BaseString) {
IS_OFFLINE: t.s('Unavailable to run jobs.'),
IS_OFFLINE_LABEL: t.s('Unavailable')
};
ns.jobs = {
PANEL_TITLE: t.s('Jobs')
};
}
InstanceGroupsStrings.$inject = ['BaseStringService'];
export default InstanceGroupsStrings;
export default InstanceGroupsStrings;

View File

@ -6,7 +6,7 @@ function InstanceGroupJobsContainerController (strings, $state) {
function init() {
const instanceGroupId = $state.params.instance_group_id;
vm.panelTitle = 'Jobs'
vm.panelTitle = strings.get('jobs.PANEL_TITLE');
vm.strings = strings;
vm.tab = {

View File

@ -1,20 +1,17 @@
function InstanceGroupJobsContainerController (strings, $state) {
function InstanceGroupJobsContainerController (strings) {
const vm = this || {};
init();
function init() {
const instanceGroupId = $state.params.instance_group_id;
vm.panelTitle = 'Jobs'
vm.panelTitle = strings.get('jobs.PANEL_TITLE');
vm.strings = strings;
}
}
InstanceGroupJobsContainerController.$inject = [
'InstanceGroupsStrings',
'$state'
'InstanceGroupsStrings'
];
export default InstanceGroupJobsContainerController;

View File

@ -13,4 +13,4 @@ export default
managementJobsCard.name,
managementJobsScheduler.name,
managementJobsNotifications.name
])
]);

1
tower-license Submodule

@ -0,0 +1 @@
Subproject commit 009cc73a80e5123143e9c780c7011903d4c2a331