fix: remove app dialog while removing installed calendar (#10234)
* Fix remove app dialog while removing installed calendar * fix: dialog in webhook, otp Signed-off-by: Udit Takkar <[email protected]> * fix: more dialogs Signed-off-by: Udit Takkar <[email protected]> * fix: margin Signed-off-by: Udit Takkar <[email protected]> --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
6 files changed
+29
-24
No files matched your search
@@ -145,7 +145,7 @@ function NewFormDialog({ appUrl }: { appUrl: string }) {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter showDivider className="mt-12 flex flex-row-reverse gap-x-2">
|
<DialogFooter showDivider className="mt-12">
|
||||||
<DialogClose />
|
<DialogClose />
|
||||||
<Button loading={mutation.isLoading} data-testid="add-form" type="submit">
|
<Button loading={mutation.isLoading} data-testid="add-form" type="submit">
|
||||||
{t("continue")}
|
{t("continue")}
|
||||||
|
|||||||
@@ -5,14 +5,12 @@ import { trpc } from "@calcom/trpc/react";
|
|||||||
import type { ButtonProps } from "@calcom/ui";
|
import type { ButtonProps } from "@calcom/ui";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
|
ConfirmationDialogContent,
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
|
||||||
DialogTrigger,
|
DialogTrigger,
|
||||||
showToast,
|
showToast,
|
||||||
DialogFooter,
|
|
||||||
DialogClose,
|
|
||||||
} from "@calcom/ui";
|
} from "@calcom/ui";
|
||||||
import { Trash, AlertCircle } from "@calcom/ui/components/icon";
|
import { Trash } from "@calcom/ui/components/icon";
|
||||||
|
|
||||||
export default function DisconnectIntegration({
|
export default function DisconnectIntegration({
|
||||||
credentialId,
|
credentialId,
|
||||||
@@ -62,18 +60,15 @@ export default function DisconnectIntegration({
|
|||||||
{label && label}
|
{label && label}
|
||||||
</Button>
|
</Button>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent
|
<ConfirmationDialogContent
|
||||||
|
variety="danger"
|
||||||
title={t("remove_app")}
|
title={t("remove_app")}
|
||||||
description={t("are_you_sure_you_want_to_remove_this_app")}
|
confirmBtnText={t("yes_remove_app")}
|
||||||
type="confirmation"
|
onConfirm={() => {
|
||||||
Icon={AlertCircle}>
|
mutation.mutate({ id: credentialId });
|
||||||
<DialogFooter>
|
}}>
|
||||||
<DialogClose onClick={() => setModalOpen(false)} />
|
<p className="mt-5">{t("are_you_sure_you_want_to_remove_this_app")}</p>
|
||||||
<DialogClose color="primary" onClick={() => mutation.mutate({ id: credentialId })}>
|
</ConfirmationDialogContent>
|
||||||
{t("yes_remove_app")}
|
|
||||||
</DialogClose>
|
|
||||||
</DialogFooter>
|
|
||||||
</DialogContent>
|
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default function MemberChangeRoleModal(props: {
|
|||||||
{errorMessage}
|
{errorMessage}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<DialogFooter className="mt-12 sm:flex sm:flex-row-reverse">
|
<DialogFooter className="mt-12">
|
||||||
<Button type="button" color="secondary" onClick={props.onExit}>
|
<Button type="button" color="secondary" onClick={props.onExit}>
|
||||||
{t("cancel")}
|
{t("cancel")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -945,8 +945,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
|||||||
</ConfirmationDialogContent>
|
</ConfirmationDialogContent>
|
||||||
</Dialog> */}
|
</Dialog> */}
|
||||||
<Dialog open={isAdditionalInputsDialogOpen} onOpenChange={setIsAdditionalInputsDialogOpen}>
|
<Dialog open={isAdditionalInputsDialogOpen} onOpenChange={setIsAdditionalInputsDialogOpen}>
|
||||||
<DialogContent type="creation" className="sm:max-w-[610px]">
|
<DialogContent enableOverflow type="creation" className="sm:max-w-[610px]">
|
||||||
<div className="-m-3 h-[430px] overflow-x-hidden overflow-y-scroll sm:m-0">
|
<div>
|
||||||
<h1 className="w-full text-xl font-semibold ">{t("how_booking_questions_as_variables")}</h1>
|
<h1 className="w-full text-xl font-semibold ">{t("how_booking_questions_as_variables")}</h1>
|
||||||
<div className="bg-muted-3 mb-6 rounded-md sm:p-4">
|
<div className="bg-muted-3 mb-6 rounded-md sm:p-4">
|
||||||
<p className="test-sm font-medium">{t("format")}</p>
|
<p className="test-sm font-medium">{t("format")}</p>
|
||||||
@@ -994,7 +994,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter showDivider className="flex flex-row-reverse">
|
<DialogFooter showDivider>
|
||||||
<DialogClose color="primary" />
|
<DialogClose color="primary" />
|
||||||
</DialogFooter>
|
</DialogFooter>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ const DuplicateDialog = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter showDivider className="mt-10 flex-row-reverse gap-x-2">
|
<DialogFooter showDivider className="mt-10">
|
||||||
<DialogClose />
|
<DialogClose />
|
||||||
<Button type="submit" loading={duplicateMutation.isLoading}>
|
<Button type="submit" loading={duplicateMutation.isLoading}>
|
||||||
{t("continue")}
|
{t("continue")}
|
||||||
|
|||||||
@@ -5,7 +5,17 @@ import { WEBAPP_URL } from "@calcom/lib/constants";
|
|||||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||||
import { WebhookTriggerEvents } from "@calcom/prisma/enums";
|
import { WebhookTriggerEvents } from "@calcom/prisma/enums";
|
||||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||||
import { Button, Form, Label, Select, Switch, TextArea, TextField, ToggleGroup } from "@calcom/ui";
|
import {
|
||||||
|
Button,
|
||||||
|
Form,
|
||||||
|
Label,
|
||||||
|
Select,
|
||||||
|
Switch,
|
||||||
|
TextArea,
|
||||||
|
TextField,
|
||||||
|
ToggleGroup,
|
||||||
|
DialogFooter,
|
||||||
|
} from "@calcom/ui";
|
||||||
|
|
||||||
import customTemplate, { hasTemplateIntegration } from "../lib/integrationTemplate";
|
import customTemplate, { hasTemplateIntegration } from "../lib/integrationTemplate";
|
||||||
import WebhookTestDisclosure from "./WebhookTestDisclosure";
|
import WebhookTestDisclosure from "./WebhookTestDisclosure";
|
||||||
@@ -259,7 +269,7 @@ const WebhookForm = (props: {
|
|||||||
<WebhookTestDisclosure />
|
<WebhookTestDisclosure />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-12 flex place-content-end space-x-4">
|
<DialogFooter showDivider>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
color="minimal"
|
color="minimal"
|
||||||
@@ -270,7 +280,7 @@ const WebhookForm = (props: {
|
|||||||
<Button type="submit" loading={formMethods.formState.isSubmitting}>
|
<Button type="submit" loading={formMethods.formState.isSubmitting}>
|
||||||
{props?.webhook?.id ? t("save") : t("create_webhook")}
|
{props?.webhook?.id ? t("save") : t("create_webhook")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</DialogFooter>
|
||||||
</Form>
|
</Form>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user