Skip to content

Commit

Permalink
Merge pull request Tauffer-Consulting#282 from Tauffer-Consulting/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
vinicvaz authored Apr 19, 2024
2 parents 5c43a37 + 1da2d26 commit 0d23409
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ services:

# Domino Docker Proxy
docker-proxy:
image: bobrik/socat
image: alpine/socat
container_name: domino-docker-proxy
command: "TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock"
ports:
Expand Down
36 changes: 30 additions & 6 deletions frontend/src/context/workspaces/workspaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,35 @@ export const WorkspacesProvider: FC<IWorkspacesProviderProps> = ({
pageSize: workspaceUsersTablePageSize,
});

const { mutateAsync: postWorkspace } = useCreateWorkspace();
const { mutateAsync: deleteWorkspace } = useDeleteWorkspace();
const { mutateAsync: postWorkspace } = useCreateWorkspace({
onSuccess: async () => {
await queryClient.invalidateQueries({
queryKey: ["WORKSPACES"],
});
},
});
const { mutateAsync: deleteWorkspace } = useDeleteWorkspace({
onSuccess: async () => {
await queryClient.invalidateQueries({
queryKey: ["WORKSPACES"],
});
},
});

const { mutateAsync: acceptWorkspaceInvite } = useAcceptWorkspaceInvite();
const { mutateAsync: rejectWorkspaceInvite } = useRejectWorkspaceInvite();
const { mutateAsync: acceptWorkspaceInvite } = useAcceptWorkspaceInvite({
onSuccess: async () => {
await queryClient.invalidateQueries({
queryKey: ["WORKSPACES"],
});
},
});
const { mutateAsync: rejectWorkspaceInvite } = useRejectWorkspaceInvite({
onSuccess: async () => {
await queryClient.invalidateQueries({
queryKey: ["WORKSPACES"],
});
},
});
const { mutateAsync: inviteWorkspace } = useInviteWorkspace(
{
workspaceId: workspace?.id,
Expand Down Expand Up @@ -188,7 +212,7 @@ export const WorkspacesProvider: FC<IWorkspacesProviderProps> = ({

const handleCreateWorkspace = useCallback(
async (name: string) =>
postWorkspace({ name })
await postWorkspace({ name })
.then((data) => {
toast.success(`Workspace ${name} created successfully`);
return data;
Expand Down Expand Up @@ -241,7 +265,7 @@ export const WorkspacesProvider: FC<IWorkspacesProviderProps> = ({
workspaces,
workspacesError: !!workspacesError,
workspacesLoading,
handleRefreshWorkspaces: async () => workspacesRefresh(),
handleRefreshWorkspaces: async () => await workspacesRefresh(),
workspace,
handleChangeWorkspace,
handleCreateWorkspace,
Expand Down
2 changes: 1 addition & 1 deletion src/domino/cli/utils/docker-compose-without-database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ services:

# Domino Docker proxy
docker-proxy:
image: bobrik/socat
image: alpine/socat
container_name: domino-docker-proxy
command: "TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock"
ports:
Expand Down
2 changes: 1 addition & 1 deletion src/domino/cli/utils/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ services:

# Domino Docker proxy
docker-proxy:
image: bobrik/socat
image: alpine/socat
container_name: domino-docker-proxy
command: "TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock"
ports:
Expand Down

0 comments on commit 0d23409

Please sign in to comment.