mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
refactor(environments): remove endpoints cache [DTD-100] (#6408)
This commit is contained in:
parent
9ef2e27aae
commit
37d4a80769
51 changed files with 155 additions and 353 deletions
|
@ -1,10 +1,10 @@
|
|||
import { EventViewModel } from '../models/event';
|
||||
import { ping } from './ping';
|
||||
|
||||
angular.module('portainer.docker').factory('SystemService', [
|
||||
'$q',
|
||||
'System',
|
||||
'SystemEndpoint',
|
||||
function SystemServiceFactory($q, System, SystemEndpoint) {
|
||||
function SystemServiceFactory($q, System) {
|
||||
'use strict';
|
||||
var service = {};
|
||||
|
||||
|
@ -26,7 +26,7 @@ angular.module('portainer.docker').factory('SystemService', [
|
|||
};
|
||||
|
||||
service.ping = function (endpointId) {
|
||||
return SystemEndpoint.ping({ endpointId: endpointId }).$promise;
|
||||
return ping(endpointId);
|
||||
};
|
||||
|
||||
service.version = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue