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,14 +815,24 @@ export const IntegrationSettingsModal = ({
) : error ? ( ) : error ? (
<Typography color="error">{error}</Typography> <Typography color="error">{error}</Typography>
) : spreadsheets.length === 0 ? ( ) : spreadsheets.length === 0 ? (
<Button <Box sx={{ display: "flex", gap: "15px", alignItems: "center", marginBottom: "20px" }}>
variant="outlined" <Button
color="primary" variant="outlined"
onClick={fetchSpreadsheetFiles} color="primary"
disabled={loading} onClick={fetchSpreadsheetFiles}
> disabled={loading}
{t("integration_settings.google.buttons.fetch_sheets")} >
</Button> {t("integration_settings.google.buttons.fetch_sheets")}
</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,14 +925,24 @@ export const IntegrationSettingsModal = ({
) : error ? ( ) : error ? (
<Typography color="error">{error}</Typography> <Typography color="error">{error}</Typography>
) : airtableBases.length === 0 ? ( ) : airtableBases.length === 0 ? (
<Button <Box sx={{ display: "flex", gap: "15px", alignItems: "center", marginBottom: "20px" }}>
variant="outlined" <Button
color="primary" variant="outlined"
onClick={fetchAirtableBases} color="primary"
disabled={loading} onClick={fetchAirtableBases}
> disabled={loading}
{t("integration_settings.airtable.buttons.fetch_bases")} >
</Button> {t("integration_settings.airtable.buttons.fetch_bases")}
</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