mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(teams): migrate teams to react [EE-2273] (#6691)
closes [EE-2273]
This commit is contained in:
parent
9b02f575ef
commit
f9427c8fb2
97 changed files with 1929 additions and 938 deletions
|
@ -10,6 +10,7 @@ import { Tag } from '@/portainer/tags/types';
|
|||
import { StatusResponse } from '@/portainer/services/api/status.service';
|
||||
import { createMockTeams } from '@/react-tools/test-mocks';
|
||||
import { PublicSettingsResponse } from '@/portainer/settings/types';
|
||||
import { UserId } from '@/portainer/users/types';
|
||||
|
||||
import { azureHandlers } from './setup-handlers/azure';
|
||||
import { dockerHandlers } from './setup-handlers/docker';
|
||||
|
@ -36,6 +37,12 @@ export const handlers = [
|
|||
res(ctx.json(createMockTeams(10)))
|
||||
),
|
||||
|
||||
rest.post<{ name: string }>('/api/teams', (req, res, ctx) =>
|
||||
res(ctx.status(204))
|
||||
),
|
||||
rest.post<{ userId: UserId }>('/api/team_memberships', (req, res, ctx) =>
|
||||
res(ctx.status(204))
|
||||
),
|
||||
...azureHandlers,
|
||||
...dockerHandlers,
|
||||
...userHandlers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue