mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 02:17:37 -02:30
Merge pull request #2437 from marshmalien/fix/2434-list-icons
Tweak network visualization icon and remove calendar icon from lists
This commit is contained in:
@@ -149,10 +149,10 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-borderHeader {
|
&-borderHeader {
|
||||||
|
|||||||
@@ -101,13 +101,6 @@ export default ['i18n', 'awxNetStrings' , function(i18n, awxNetStrings) {
|
|||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: '!inventory.pending_deletion && inventory.summary_fields.user_capabilities.edit'
|
ngShow: '!inventory.pending_deletion && inventory.summary_fields.user_capabilities.edit'
|
||||||
},
|
},
|
||||||
network: {
|
|
||||||
label: awxNetStrings.get('feature.ACTION_BUTTON'),
|
|
||||||
ngClick: 'goToGraph(inventory)',
|
|
||||||
awToolTip: awxNetStrings.get('feature.ACTION_BUTTON'),
|
|
||||||
dataPlacement: 'top',
|
|
||||||
ngShow: '!inventory.pending_deletion'
|
|
||||||
},
|
|
||||||
copy: {
|
copy: {
|
||||||
label: i18n._('Copy'),
|
label: i18n._('Copy'),
|
||||||
ngClick: 'copyInventory(inventory)',
|
ngClick: 'copyInventory(inventory)',
|
||||||
@@ -123,6 +116,13 @@ export default ['i18n', 'awxNetStrings' , function(i18n, awxNetStrings) {
|
|||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: '!inventory.summary_fields.user_capabilities.edit'
|
ngShow: '!inventory.summary_fields.user_capabilities.edit'
|
||||||
},
|
},
|
||||||
|
network: {
|
||||||
|
label: awxNetStrings.get('feature.ACTION_BUTTON'),
|
||||||
|
ngClick: 'goToGraph(inventory)',
|
||||||
|
awToolTip: awxNetStrings.get('feature.ACTION_BUTTON'),
|
||||||
|
dataPlacement: 'top',
|
||||||
|
ngShow: '!inventory.pending_deletion'
|
||||||
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
label: i18n._('Delete'),
|
label: i18n._('Delete'),
|
||||||
ngClick: "deleteInventory(inventory.id, inventory.name)",
|
ngClick: "deleteInventory(inventory.id, inventory.name)",
|
||||||
|
|||||||
@@ -108,7 +108,6 @@
|
|||||||
{status_tooltip: inventory_source_status.tooltip},
|
{status_tooltip: inventory_source_status.tooltip},
|
||||||
{launch_tooltip: inventory_source_status.launch_tip},
|
{launch_tooltip: inventory_source_status.launch_tip},
|
||||||
{launch_class: inventory_source_status.launch_class},
|
{launch_class: inventory_source_status.launch_class},
|
||||||
{group_schedule_tooltip: inventory_source_status.schedule_tip},
|
|
||||||
{source: inventory_source ? inventory_source.source : null},
|
{source: inventory_source ? inventory_source.source : null},
|
||||||
{status: inventory_source ? inventory_source.status : null});
|
{status: inventory_source ? inventory_source.status : null});
|
||||||
}
|
}
|
||||||
@@ -213,17 +212,13 @@
|
|||||||
$scope.cancelUpdate = function (id) {
|
$scope.cancelUpdate = function (id) {
|
||||||
CancelSourceUpdate({ scope: $scope, id: id });
|
CancelSourceUpdate({ scope: $scope, id: id });
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.viewUpdateStatus = function (id) {
|
$scope.viewUpdateStatus = function (id) {
|
||||||
ViewUpdateStatus({
|
ViewUpdateStatus({
|
||||||
scope: $scope,
|
scope: $scope,
|
||||||
inventory_source_id: id
|
inventory_source_id: id
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
$scope.scheduleSource = function(id) {
|
|
||||||
// Add this inv source's id to the array of inv source id's so that it gets
|
|
||||||
// added to the breadcrumb trail
|
|
||||||
$state.go('inventories.edit.inventory_sources.edit.schedules',{inventory_source_id: id});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.syncAllSources = function() {
|
$scope.syncAllSources = function() {
|
||||||
InventoryUpdate({
|
InventoryUpdate({
|
||||||
|
|||||||
@@ -104,14 +104,6 @@
|
|||||||
dataPlacement: "top",
|
dataPlacement: "top",
|
||||||
iconClass: "fa fa-minus-circle"
|
iconClass: "fa fa-minus-circle"
|
||||||
},
|
},
|
||||||
schedule: {
|
|
||||||
mode: 'all',
|
|
||||||
ngClick: "scheduleSource(inventory_source.id)",
|
|
||||||
awToolTip: "{{ inventory_source.group_schedule_tooltip }}",
|
|
||||||
ngClass: "inventory_source.scm_type_class",
|
|
||||||
dataPlacement: 'top',
|
|
||||||
ngShow: "!(inventory_source.summary_fields.inventory_source.source === '') && inventory_source.summary_fields.user_capabilities.schedule"
|
|
||||||
},
|
|
||||||
view: {
|
view: {
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
ngClick: "editSource(inventory_source.id)",
|
ngClick: "editSource(inventory_source.id)",
|
||||||
|
|||||||
@@ -72,9 +72,5 @@ export default ['$scope', '$rootScope',
|
|||||||
$scope.editJobTemplate = function(id) {
|
$scope.editJobTemplate = function(id) {
|
||||||
$state.go('templates.editJobTemplate', { job_template_id: id });
|
$state.go('templates.editJobTemplate', { job_template_id: id });
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.scheduleJob = function(id) {
|
|
||||||
$state.go('templates.editJobTemplate.schedules', { id: id });
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export default ['$scope', '$rootScope', '$log', '$stateParams', 'Rest', 'Alert',
|
|||||||
$scope.projects[i].statusIcon = GetProjectIcon(project.status);
|
$scope.projects[i].statusIcon = GetProjectIcon(project.status);
|
||||||
$scope.projects[i].statusTip = GetProjectToolTip(project.status);
|
$scope.projects[i].statusTip = GetProjectToolTip(project.status);
|
||||||
$scope.projects[i].scm_update_tooltip = "Get latest SCM revision";
|
$scope.projects[i].scm_update_tooltip = "Get latest SCM revision";
|
||||||
$scope.projects[i].scm_schedule_tooltip = "Schedule SCM revision updates";
|
|
||||||
$scope.projects[i].scm_type_class = "";
|
$scope.projects[i].scm_type_class = "";
|
||||||
|
|
||||||
if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') {
|
if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') {
|
||||||
@@ -53,7 +52,6 @@ export default ['$scope', '$rootScope', '$log', '$stateParams', 'Rest', 'Alert',
|
|||||||
$scope.projects[i].scm_type = type.label;
|
$scope.projects[i].scm_type = type.label;
|
||||||
if (type.label === 'Manual') {
|
if (type.label === 'Manual') {
|
||||||
$scope.projects[i].scm_update_tooltip = 'Manual projects do not require an SCM update';
|
$scope.projects[i].scm_update_tooltip = 'Manual projects do not require an SCM update';
|
||||||
$scope.projects[i].scm_schedule_tooltip = 'Manual projects do not require a schedule';
|
|
||||||
$scope.projects[i].scm_type_class = 'btn-disabled';
|
$scope.projects[i].scm_type_class = 'btn-disabled';
|
||||||
$scope.projects[i].statusTip = 'Not configured for SCM';
|
$scope.projects[i].statusTip = 'Not configured for SCM';
|
||||||
$scope.projects[i].statusIcon = 'none';
|
$scope.projects[i].statusIcon = 'none';
|
||||||
@@ -298,13 +296,6 @@ export default ['$scope', '$rootScope', '$log', '$stateParams', 'Rest', 'Alert',
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.editSchedules = function(id) {
|
|
||||||
var project = Find({ list: $scope.projects, key: 'id', val: id });
|
|
||||||
if (!(project.scm_type === "Manual" || Empty(project.scm_type)) && !(project.status === 'updating' || project.status === 'running' || project.status === 'pending')) {
|
|
||||||
$state.go('projects.edit.schedules', { project_id: id });
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.formCancel = function() {
|
$scope.formCancel = function() {
|
||||||
$state.go('organizations');
|
$state.go('organizations');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
|
|||||||
project.statusIcon = GetProjectIcon(project.status);
|
project.statusIcon = GetProjectIcon(project.status);
|
||||||
project.statusTip = GetProjectToolTip(project.status);
|
project.statusTip = GetProjectToolTip(project.status);
|
||||||
project.scm_update_tooltip = i18n._("Get latest SCM revision");
|
project.scm_update_tooltip = i18n._("Get latest SCM revision");
|
||||||
project.scm_schedule_tooltip = i18n._("Schedule SCM revision updates");
|
|
||||||
project.scm_type_class = "";
|
project.scm_type_class = "";
|
||||||
|
|
||||||
if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') {
|
if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') {
|
||||||
@@ -88,7 +87,6 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
|
|||||||
}
|
}
|
||||||
if (project.scm_type === 'manual') {
|
if (project.scm_type === 'manual') {
|
||||||
project.scm_update_tooltip = i18n._('Manual projects do not require an SCM update');
|
project.scm_update_tooltip = i18n._('Manual projects do not require an SCM update');
|
||||||
project.scm_schedule_tooltip = i18n._('Manual projects do not require a schedule');
|
|
||||||
project.scm_type_class = 'btn-disabled';
|
project.scm_type_class = 'btn-disabled';
|
||||||
project.statusTip = i18n._('Not configured for SCM');
|
project.statusTip = i18n._('Not configured for SCM');
|
||||||
project.statusIcon = 'none';
|
project.statusIcon = 'none';
|
||||||
@@ -328,12 +326,5 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.editSchedules = function(id) {
|
|
||||||
var project = Find({ list: $scope.projects, key: 'id', val: id });
|
|
||||||
if (!(project.scm_type === "Manual" || Empty(project.scm_type)) && !(project.status === 'updating' || project.status === 'running' || project.status === 'pending')) {
|
|
||||||
$state.go('projects.edit.schedules', { project_id: id });
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -96,14 +96,6 @@ export default ['i18n', function(i18n) {
|
|||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: "project.summary_fields.user_capabilities.start"
|
ngShow: "project.summary_fields.user_capabilities.start"
|
||||||
},
|
},
|
||||||
schedule: {
|
|
||||||
mode: 'all',
|
|
||||||
ngClick: "editSchedules(project.id)",
|
|
||||||
awToolTip: "{{ project.scm_schedule_tooltip }}",
|
|
||||||
ngClass: "project.scm_type_class",
|
|
||||||
dataPlacement: 'top',
|
|
||||||
ngShow: "project.summary_fields.user_capabilities.schedule"
|
|
||||||
},
|
|
||||||
copy: {
|
copy: {
|
||||||
label: i18n._('Copy'),
|
label: i18n._('Copy'),
|
||||||
ngClick: 'copyProject(project)',
|
ngClick: 'copyProject(project)',
|
||||||
|
|||||||
@@ -89,13 +89,6 @@ export default ['i18n', function(i18n) {
|
|||||||
// The submit key lets the list generator know that we want to use the
|
// The submit key lets the list generator know that we want to use the
|
||||||
// at-launch-template directive
|
// at-launch-template directive
|
||||||
},
|
},
|
||||||
schedule: {
|
|
||||||
label: i18n._('Schedule'),
|
|
||||||
mode: 'all',
|
|
||||||
ngClick: 'scheduleJob(template)',
|
|
||||||
awToolTip: i18n._('Schedule job template runs'),
|
|
||||||
dataPlacement: 'top',
|
|
||||||
},
|
|
||||||
copy: {
|
copy: {
|
||||||
label: i18n._('Copy'),
|
label: i18n._('Copy'),
|
||||||
ngClick: 'copyTemplate(template)',
|
ngClick: 'copyTemplate(template)',
|
||||||
|
|||||||
Reference in New Issue
Block a user