mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 14:55:27 +02:00
refactor(edge): deprecate IsEdgeDevice [EE-5046] (#8534)
This commit is contained in:
parent
814fc9dfc0
commit
308a78db21
18 changed files with 21 additions and 109 deletions
|
@ -46,7 +46,7 @@ function config($stateRegistryProvider: StateRegistry) {
|
|||
|
||||
$stateRegistryProvider.register({
|
||||
name: 'portainer.wizard.endpoints',
|
||||
url: '/endpoints?edgeDevice',
|
||||
url: '/endpoints',
|
||||
views: {
|
||||
'content@': {
|
||||
component: 'wizardEnvironmentTypeSelectView',
|
||||
|
|
|
@ -90,8 +90,7 @@ angular.module('portainer.app').factory('EndpointService', [
|
|||
TLSCAFile,
|
||||
TLSCertFile,
|
||||
TLSKeyFile,
|
||||
checkinInterval,
|
||||
isEdgeDevice
|
||||
checkinInterval
|
||||
) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
|
@ -113,8 +112,7 @@ angular.module('portainer.app').factory('EndpointService', [
|
|||
TLSCAFile,
|
||||
TLSCertFile,
|
||||
TLSKeyFile,
|
||||
checkinInterval,
|
||||
isEdgeDevice
|
||||
checkinInterval
|
||||
)
|
||||
.then(function success(response) {
|
||||
deferred.resolve(response.data);
|
||||
|
|
|
@ -153,8 +153,7 @@ angular.module('portainer.app').factory('FileUploadService', [
|
|||
TLSCAFile,
|
||||
TLSCertFile,
|
||||
TLSKeyFile,
|
||||
checkinInterval,
|
||||
isEdgeDevice
|
||||
checkinInterval
|
||||
) {
|
||||
return Upload.upload({
|
||||
url: 'api/endpoints',
|
||||
|
@ -172,7 +171,6 @@ angular.module('portainer.app').factory('FileUploadService', [
|
|||
TLSCertFile: TLSCertFile,
|
||||
TLSKeyFile: TLSKeyFile,
|
||||
CheckinInterval: checkinInterval,
|
||||
IsEdgeDevice: isEdgeDevice,
|
||||
},
|
||||
ignoreLoadingBar: true,
|
||||
});
|
||||
|
|
|
@ -82,8 +82,7 @@ angular
|
|||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
true
|
||||
null
|
||||
);
|
||||
} catch (err) {
|
||||
Notifications.error('Failure', err, 'Unable to create the environment');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue