mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 03:45:22 +02:00
refactor(templates): migrate list view to react [EE-2296] (#10999)
This commit is contained in:
parent
d38085a560
commit
6ff4fd3db2
103 changed files with 2628 additions and 1315 deletions
19
app/react/docker/volumes/queries/build-url.ts
Normal file
19
app/react/docker/volumes/queries/build-url.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { buildUrl as buildProxyUrl } from '@/react/docker/proxy/queries/build-url';
|
||||
import { EnvironmentId } from '@/react/portainer/environments/types';
|
||||
|
||||
export function buildUrl(
|
||||
environmentId: EnvironmentId,
|
||||
{ action, id }: { id?: string; action?: string } = {}
|
||||
) {
|
||||
let url = buildProxyUrl(environmentId, 'volumes');
|
||||
|
||||
if (id) {
|
||||
url += `/${id}`;
|
||||
}
|
||||
|
||||
if (action) {
|
||||
url += `/${action}`;
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue