Merge pull request #716 from getmaxun/rm-auth

feat: option to remove authentication for integration
This commit is contained in:
Karishma Shukla
2025-08-08 16:10:15 +05:30
committed by GitHub

View File

@@ -815,6 +815,7 @@ export const IntegrationSettingsModal = ({
) : error ? ( ) : error ? (
<Typography color="error">{error}</Typography> <Typography color="error">{error}</Typography>
) : spreadsheets.length === 0 ? ( ) : spreadsheets.length === 0 ? (
<Box sx={{ display: "flex", gap: "15px", alignItems: "center", marginBottom: "20px" }}>
<Button <Button
variant="outlined" variant="outlined"
color="primary" color="primary"
@@ -823,6 +824,15 @@ export const IntegrationSettingsModal = ({
> >
{t("integration_settings.google.buttons.fetch_sheets")} {t("integration_settings.google.buttons.fetch_sheets")}
</Button> </Button>
<Button
variant="outlined"
color="error"
onClick={removeGoogleSheetsIntegration}
disabled={loading}
>
{loading ? <CircularProgress size={24} /> : t("integration_settings.google.buttons.remove_integration")}
</Button>
</Box>
) : ( ) : (
<> <>
<TextField <TextField
@@ -915,6 +925,7 @@ export const IntegrationSettingsModal = ({
) : error ? ( ) : error ? (
<Typography color="error">{error}</Typography> <Typography color="error">{error}</Typography>
) : airtableBases.length === 0 ? ( ) : airtableBases.length === 0 ? (
<Box sx={{ display: "flex", gap: "15px", alignItems: "center", marginBottom: "20px" }}>
<Button <Button
variant="outlined" variant="outlined"
color="primary" color="primary"
@@ -923,6 +934,15 @@ export const IntegrationSettingsModal = ({
> >
{t("integration_settings.airtable.buttons.fetch_bases")} {t("integration_settings.airtable.buttons.fetch_bases")}
</Button> </Button>
<Button
variant="outlined"
color="error"
onClick={removeAirtableIntegration}
disabled={loading}
>
{loading ? <CircularProgress size={24} /> : t("integration_settings.airtable.buttons.remove_integration")}
</Button>
</Box>
) : ( ) : (
<> <>
<TextField <TextField