mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
Revert "adding inventory button"
This reverts commit 949dd868bd6dc2a150068b42d968897dc3674bc3.
This commit is contained in:
@@ -895,29 +895,18 @@ export function InventoriesManage ($log, $scope, $rootScope, $location,
|
|||||||
// you need this so that the event doesn't bubble to the watcher above
|
// you need this so that the event doesn't bubble to the watcher above
|
||||||
// for the host list
|
// for the host list
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (selection.length === 0) {
|
if (selection.length > 0) {
|
||||||
$scope.hostsSelected = false;
|
|
||||||
} else if (selection.length === 1) {
|
|
||||||
$scope.systemTrackingTooltip = "Compare host over time";
|
|
||||||
$scope.hostsSelected = true;
|
$scope.hostsSelected = true;
|
||||||
$scope.systemTrackingDisabled = false;
|
// $scope.adhocButtonTipContents = "Launch adhoc command for the "
|
||||||
} else if (selection.length === 2) {
|
// + "selected groups and hosts.";
|
||||||
$scope.systemTrackingTooltip = "Compare hosts against each other";
|
|
||||||
$scope.hostsSelected = true;
|
|
||||||
$scope.systemTrackingDisabled = false;
|
|
||||||
} else {
|
} else {
|
||||||
$scope.hostsSelected = true;
|
$scope.hostsSelected = false;
|
||||||
$scope.systemTrackingDisabled = true;
|
// $scope.adhocButtonTipContents = "Launch adhoc command for the "
|
||||||
|
// + "inventory.";
|
||||||
}
|
}
|
||||||
$scope.hostsSelectedItems = selection.selectedItems;
|
$scope.hostsSelectedItems = selection.selectedItems;
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.systemTracking = function() {
|
|
||||||
$location.path('/inventories/' + $scope.inventory.id +
|
|
||||||
'/system-tracking/' +
|
|
||||||
_.pluck($scope.hostsSelectedItems, "id").join(","));
|
|
||||||
};
|
|
||||||
|
|
||||||
// populates host patterns based on selected hosts/groups
|
// populates host patterns based on selected hosts/groups
|
||||||
$scope.populateAdhocForm = function() {
|
$scope.populateAdhocForm = function() {
|
||||||
var host_patterns = "all";
|
var host_patterns = "all";
|
||||||
|
|||||||
@@ -87,16 +87,6 @@ export default
|
|||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
system_tracking: {
|
|
||||||
label: 'System Tracking',
|
|
||||||
ngClick: 'systemTracking()', //'editInventoryProperties(inventory.id)',
|
|
||||||
awToolTip: "{{ systemTrackingTooltip }}",
|
|
||||||
dataTipWatch: "systemTrackingTooltip",
|
|
||||||
dataPlacement: 'top',
|
|
||||||
awFeature: 'system_tracking',
|
|
||||||
ngDisabled: 'systemTrackingDisabled',
|
|
||||||
ngShow: 'hostsSelected'
|
|
||||||
},
|
|
||||||
create: {
|
create: {
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
ngClick: "createHost()",
|
ngClick: "createHost()",
|
||||||
@@ -113,7 +103,7 @@ export default
|
|||||||
awToolTip: "View Activity Stream",
|
awToolTip: "View Activity Stream",
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
awFeature: 'activity_streams'
|
awFeature: 'activity_streams'
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -103,9 +103,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
|||||||
action = params.action,
|
action = params.action,
|
||||||
size = params.size;
|
size = params.size;
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'system_tracking':
|
|
||||||
icon = "fa-crosshairs";
|
|
||||||
break;
|
|
||||||
case 'help':
|
case 'help':
|
||||||
icon = "fa-question-circle";
|
icon = "fa-question-circle";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
class="options.class"
|
class="options.class"
|
||||||
data-title="{{options.dataTitle}}"
|
data-title="{{options.dataTitle}}"
|
||||||
icon-size="{{options.iconSize}}"
|
icon-size="{{options.iconSize}}"
|
||||||
ng-disabled="{{options.ngDisabled}}"
|
|
||||||
ng-click="$eval(options.ngClick)"
|
ng-click="$eval(options.ngClick)"
|
||||||
ng-hide="isHiddenByOptions(options) ||
|
ng-hide="isHiddenByOptions(options) ||
|
||||||
hiddenOnCurrentPage(options.basePaths) ||
|
hiddenOnCurrentPage(options.basePaths) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user