unlink google calendar

master
alex 2024-01-21 09:16:11 +01:00
parent ce9fecef3d
commit 07f9240994
3 changed files with 37 additions and 5 deletions

View File

@ -166,6 +166,11 @@
"title": "Google Kalender nicht verbunden", "title": "Google Kalender nicht verbunden",
"subTitle": "Klicken Sie auf die Schaltfläche unten, um Ihren Google Kalender zu verbinden.", "subTitle": "Klicken Sie auf die Schaltfläche unten, um Ihren Google Kalender zu verbinden.",
"button": "Jetzt verbinden" "button": "Jetzt verbinden"
},
"unlinkGoogleCalendar": {
"title": "Google Kalender trennen",
"description": "Möchten Sie die Verbindung zu Ihrem Google Kalender wirklich trennen?",
"button": "Google Kalender trennen"
} }
}, },
"storeSettings": { "storeSettings": {

View File

@ -169,6 +169,11 @@
"title": "Google Calendar not connected", "title": "Google Calendar not connected",
"subTitle": "Click on the button below to connect your Google Calendar.", "subTitle": "Click on the button below to connect your Google Calendar.",
"button": "Connect now" "button": "Connect now"
},
"unlinkGoogleCalendar": {
"title": "Unlink Google Calendar",
"description": "Are you sure you want to unlink your Google Calendar?",
"button": "Unlink Google Calendar"
} }
}, },
"storeSettings": { "storeSettings": {

View File

@ -1,4 +1,15 @@
import { Button, Card, Col, Form, Result, Row, Spin, Switch } from "antd"; import {
Button,
Card,
Col,
Form,
Popconfirm,
Result,
Row,
Space,
Spin,
Switch,
} from "antd";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { import {
Constants, Constants,
@ -141,10 +152,21 @@ function CardPersonalCalendarSettings({ settings }) {
<Card <Card
title={t("calendar.cardPersonalCalendarSettings.title")} title={t("calendar.cardPersonalCalendarSettings.title")}
extra={ extra={
<Space>
<RequestStateItem <RequestStateItem
state={requestState} state={requestState}
setRequestState={setRequestState} setRequestState={setRequestState}
/> />
<Popconfirm
okText={t("common.button.confirm")}
cancelText={t("common.button.cancel")}
title={t("calendar.unlinkGoogleCalendar.title")}
description={t("calendar.unlinkGoogleCalendar.description")}
>
<Button danger>{t("calendar.unlinkGoogleCalendar.button")}</Button>
</Popconfirm>
</Space>
} }
> >
<Form form={form} requiredMark={false}> <Form form={form} requiredMark={false}>