Merge pull request #10818 from Budibase/budi-6945/no_sheet_selected

Change submit text if sheets not selected
This commit is contained in:
Michael Drury 2023-06-07 15:43:14 +01:00 committed by GitHub
commit 834dff93f7
1 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,7 @@
} }
} }
const modalConfig = { $: modalConfig = {
[GoogleDatasouceConfigStep.AUTH]: { [GoogleDatasouceConfigStep.AUTH]: {
title: `Connect to ${integrationName}`, title: `Connect to ${integrationName}`,
}, },
@ -103,7 +103,9 @@
}, },
[GoogleDatasouceConfigStep.SET_SHEETS]: { [GoogleDatasouceConfigStep.SET_SHEETS]: {
title: `Choose your sheets`, title: `Choose your sheets`,
confirmButtonText: "Fetch sheets", confirmButtonText: selectedSheets?.length
? "Fetch sheets"
: "Continue without fetching",
onConfirm: async () => { onConfirm: async () => {
await saveDatasourceAndRedirect() await saveDatasourceAndRedirect()
}, },