diff --git a/client/app/services/service-details/service-details.component.js b/client/app/services/service-details/service-details.component.js index 16b654559..df535fbfb 100644 --- a/client/app/services/service-details/service-details.component.js +++ b/client/app/services/service-details/service-details.component.js @@ -11,8 +11,8 @@ export const ServiceDetailsComponent = { /** @ngInject */ function ComponentController ($stateParams, $state, $window, CollectionsApi, EventNotifications, Chargeback, Consoles, - TagEditorModal, ModalService, PowerOperations, ServicesState, TaggingService, lodash, - Polling, LONG_POLLING_INTERVAL, UsageGraphsService) { + TagEditorModal, ModalService, PowerOperations, ServicesState, TaggingService, lodash, + Polling, LONG_POLLING_INTERVAL, UsageGraphsService) { const vm = this vm.$onInit = activate vm.$onDestroy = onDestroy @@ -286,14 +286,24 @@ function ComponentController ($stateParams, $state, $window, CollectionsApi, Eve /** @ngInject */ function resolveUsers (CollectionsApi) { - const options = {expand: 'resources', attributes: ['userid', 'name'], sort_by: 'name', sort_options: 'ignore_case'} + const options = { + expand: 'resources', + attributes: ['userid', 'name'], + sort_by: 'name', + sort_options: 'ignore_case' + } return CollectionsApi.query('users', options) } /** @ngInject */ function resolveGroups (CollectionsApi) { - const options = {expand: 'resources', attributes: ['description'], sort_by: 'description', sort_options: 'ignore_case'} + const options = { + expand: 'resources', + attributes: ['description'], + sort_by: 'description', + sort_options: 'ignore_case' + } return CollectionsApi.query('groups', options) } @@ -356,7 +366,7 @@ function ComponentController ($stateParams, $state, $window, CollectionsApi, Eve } function gotoComputeResource (resource) { - $state.go('services.resource-details', {vmId: resource.id}) + $state.go('services.resource-details', {serviceId: vm.serviceId, vmId: resource.id}) } function startVM (item, isDisabled) { diff --git a/client/app/services/service-details/service-details.html b/client/app/services/service-details/service-details.html index 5da810361..0e69d4eae 100644 --- a/client/app/services/service-details/service-details.html +++ b/client/app/services/service-details/service-details.html @@ -355,8 +355,11 @@