Revert "adding inventory button"

This reverts commit 949dd868bd6dc2a150068b42d968897dc3674bc3.
This commit is contained in:
Jared Tabor 2015-05-15 14:14:07 -04:00
parent 166bd3b246
commit 3f6d093869
4 changed files with 7 additions and 32 deletions

View File

@ -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
// for the host list
e.stopPropagation();
if (selection.length === 0) {
$scope.hostsSelected = false;
} else if (selection.length === 1) {
$scope.systemTrackingTooltip = "Compare host over time";
if (selection.length > 0) {
$scope.hostsSelected = true;
$scope.systemTrackingDisabled = false;
} else if (selection.length === 2) {
$scope.systemTrackingTooltip = "Compare hosts against each other";
$scope.hostsSelected = true;
$scope.systemTrackingDisabled = false;
// $scope.adhocButtonTipContents = "Launch adhoc command for the "
// + "selected groups and hosts.";
} else {
$scope.hostsSelected = true;
$scope.systemTrackingDisabled = true;
$scope.hostsSelected = false;
// $scope.adhocButtonTipContents = "Launch adhoc command for the "
// + "inventory.";
}
$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
$scope.populateAdhocForm = function() {
var host_patterns = "all";

View File

@ -87,16 +87,6 @@ export default
},
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: {
mode: 'all',
ngClick: "createHost()",
@ -113,7 +103,7 @@ export default
awToolTip: "View Activity Stream",
mode: 'all',
awFeature: 'activity_streams'
},
}
}
});

View File

@ -103,9 +103,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
action = params.action,
size = params.size;
switch (action) {
case 'system_tracking':
icon = "fa-crosshairs";
break;
case 'help':
icon = "fa-question-circle";
break;

View File

@ -12,7 +12,6 @@
class="options.class"
data-title="{{options.dataTitle}}"
icon-size="{{options.iconSize}}"
ng-disabled="{{options.ngDisabled}}"
ng-click="$eval(options.ngClick)"
ng-hide="isHiddenByOptions(options) ||
hiddenOnCurrentPage(options.basePaths) ||