mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 23:05:26 +02:00
refactor(endpoints): remove endpointProvider from views [EE-1136] (#5359)
[EE-1136]
This commit is contained in:
parent
7088da5157
commit
eb9f6c77f4
56 changed files with 408 additions and 429 deletions
|
@ -22,6 +22,8 @@
|
|||
show-add-action="true"
|
||||
show-stack-column="true"
|
||||
refresh-callback="getServices"
|
||||
endpoint-public-url="endpoint.PublicURL"
|
||||
endpoint-id="endpoint.Id"
|
||||
></services-datatable>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -8,8 +8,11 @@ angular.module('portainer.docker').controller('ServicesController', [
|
|||
'TaskHelper',
|
||||
'NodeService',
|
||||
'ContainerService',
|
||||
function ($q, $scope, ServiceService, ServiceHelper, Notifications, TaskService, TaskHelper, NodeService, ContainerService) {
|
||||
'endpoint',
|
||||
function ($q, $scope, ServiceService, ServiceHelper, Notifications, TaskService, TaskHelper, NodeService, ContainerService, endpoint) {
|
||||
$scope.getServices = getServices;
|
||||
$scope.endpoint = endpoint;
|
||||
|
||||
function getServices() {
|
||||
var agentProxy = $scope.applicationState.endpoint.mode.agentProxy;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue