|
|
@ -114,15 +114,17 @@ angular.module('portainer.services')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$q.all({
|
|
|
|
$q.all({
|
|
|
|
info: SystemService.info(),
|
|
|
|
info: SystemService.info(),
|
|
|
|
version: SystemService.version(),
|
|
|
|
version: SystemService.version()
|
|
|
|
extensions: ExtensionManager.extensions()
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(function success(data) {
|
|
|
|
.then(function success(data) {
|
|
|
|
var endpointMode = InfoHelper.determineEndpointMode(data.info);
|
|
|
|
var endpointMode = InfoHelper.determineEndpointMode(data.info);
|
|
|
|
var endpointAPIVersion = parseFloat(data.version.ApiVersion);
|
|
|
|
var endpointAPIVersion = parseFloat(data.version.ApiVersion);
|
|
|
|
state.endpoint.mode = endpointMode;
|
|
|
|
state.endpoint.mode = endpointMode;
|
|
|
|
state.endpoint.apiVersion = endpointAPIVersion;
|
|
|
|
state.endpoint.apiVersion = endpointAPIVersion;
|
|
|
|
state.endpoint.extensions = data.extensions;
|
|
|
|
return $q.when(endpointAPIVersion < 1.25 || ExtensionManager.extensions());
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(function success(data) {
|
|
|
|
|
|
|
|
state.endpoint.extensions = data instanceof Array ? data : [];
|
|
|
|
LocalStorage.storeEndpointState(state.endpoint);
|
|
|
|
LocalStorage.storeEndpointState(state.endpoint);
|
|
|
|
deferred.resolve();
|
|
|
|
deferred.resolve();
|
|
|
|
})
|
|
|
|
})
|
|
|
|