mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +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
7
app/react/edge/edge-stacks/queries/buildUrl.ts
Normal file
7
app/react/edge/edge-stacks/queries/buildUrl.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { EdgeStack } from '../types';
|
||||
|
||||
export function buildUrl(id?: EdgeStack['Id'], action?: string) {
|
||||
const baseUrl = '/edge_stacks';
|
||||
const url = id ? `${baseUrl}/${id}` : baseUrl;
|
||||
return action ? `${url}/${action}` : url;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue