|
|
|
@ -77,6 +77,20 @@ export default function CustomerController(customerService, $state, $stateParams |
|
|
|
}, |
|
|
|
icon: "dashboard" |
|
|
|
}, |
|
|
|
{ |
|
|
|
onAction: function ($event, item) { |
|
|
|
openCustomerEdges($event, item); |
|
|
|
}, |
|
|
|
name: function() { return $translate.instant('edge.edges') }, |
|
|
|
details: function(customer) { |
|
|
|
if (customer && customer.additionalInfo && customer.additionalInfo.isPublic) { |
|
|
|
return $translate.instant('customer.manage-public-edges') |
|
|
|
} else { |
|
|
|
return $translate.instant('customer.manage-customer-edges') |
|
|
|
} |
|
|
|
}, |
|
|
|
icon: "router" |
|
|
|
}, |
|
|
|
{ |
|
|
|
onAction: function ($event, item) { |
|
|
|
vm.grid.deleteItem($event, item); |
|
|
|
@ -147,6 +161,7 @@ export default function CustomerController(customerService, $state, $stateParams |
|
|
|
vm.openCustomerAssets = openCustomerAssets; |
|
|
|
vm.openCustomerDevices = openCustomerDevices; |
|
|
|
vm.openCustomerDashboards = openCustomerDashboards; |
|
|
|
vm.openCustomerEdges = openCustomerEdges; |
|
|
|
|
|
|
|
function deleteCustomerTitle(customer) { |
|
|
|
return $translate.instant('customer.delete-customer-title', {customerTitle: customer.title}); |
|
|
|
@ -216,4 +231,11 @@ export default function CustomerController(customerService, $state, $stateParams |
|
|
|
$state.go('home.customers.dashboards', {customerId: customer.id.id}); |
|
|
|
} |
|
|
|
|
|
|
|
function openCustomerEdges($event, customer) { |
|
|
|
if ($event) { |
|
|
|
$event.stopPropagation(); |
|
|
|
} |
|
|
|
$state.go('home.customers.edges', {customerId: customer.id.id}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|