1
0
Fork 0
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:
Chaim Lev-Ari 2023-03-28 09:19:22 +03:00 committed by GitHub
parent 814fc9dfc0
commit 308a78db21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 21 additions and 109 deletions

View file

@ -46,7 +46,7 @@ function config($stateRegistryProvider: StateRegistry) {
$stateRegistryProvider.register({
name: 'portainer.wizard.endpoints',
url: '/endpoints?edgeDevice',
url: '/endpoints',
views: {
'content@': {
component: 'wizardEnvironmentTypeSelectView',

View file

@ -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);

View file

@ -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,
});

View file

@ -82,8 +82,7 @@ angular
null,
null,
null,
null,
true
null
);
} catch (err) {
Notifications.error('Failure', err, 'Unable to create the environment');