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:
parent
f3329c8cce
commit
01982e7eab
@ -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;
|
||||
|
@ -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 = {
|
||||
|
@ -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;
|
||||
|
@ -13,4 +13,4 @@ export default
|
||||
managementJobsCard.name,
|
||||
managementJobsScheduler.name,
|
||||
managementJobsNotifications.name
|
||||
])
|
||||
]);
|
||||
|
1
tower-license
Submodule
1
tower-license
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 009cc73a80e5123143e9c780c7011903d4c2a331
|
Loading…
Reference in New Issue
Block a user