show the manual instance tag based on the correct instance attribute

see: https://github.com/ansible/tower/issues/2583
This commit is contained in:
Ryan Petrello 2018-07-26 10:22:31 -04:00
parent 0694fa83b0
commit bb034f007a
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -8,7 +8,7 @@ function InstancesController ($scope, $state, $http, models, strings, Dataset, P
vm.isSuperuser = $scope.$root.user_is_superuser;
vm.instances = instanceGroup.get('related.instances.results').map(instance => {
instance.is_manual = vm.policy_instance_list.includes(instance.hostname);
instance.is_manual = instance.managed_by_policy === false;
return instance;
});