mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 14:55:27 +02:00
feat(edge/stacks): sync EE codechanges [EE-498] (#8580)
This commit is contained in:
parent
0ec7dfce69
commit
93bf630105
53 changed files with 1572 additions and 424 deletions
|
@ -1,6 +1,10 @@
|
|||
import uuid from 'uuid';
|
||||
|
||||
import { API_ENDPOINT_STACKS, API_ENDPOINT_WEBHOOKS } from '@/constants';
|
||||
import {
|
||||
API_ENDPOINT_EDGE_STACKS,
|
||||
API_ENDPOINT_STACKS,
|
||||
API_ENDPOINT_WEBHOOKS,
|
||||
} from '@/constants';
|
||||
|
||||
import { baseHref } from './pathHelper';
|
||||
|
||||
|
@ -22,6 +26,10 @@ export function createWebhookId() {
|
|||
return uuid();
|
||||
}
|
||||
|
||||
export function baseEdgeStackWebhookUrl() {
|
||||
return `${baseUrl}${API_ENDPOINT_EDGE_STACKS}/webhooks`;
|
||||
}
|
||||
|
||||
/* @ngInject */
|
||||
export function WebhookHelperFactory() {
|
||||
return {
|
||||
|
|
|
@ -130,6 +130,10 @@ angular.module('portainer.app').factory('Authentication', [
|
|||
return !!user && user.role === 1;
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
window.login = loginAsync;
|
||||
}
|
||||
|
||||
return service;
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue