1
0
Fork 0
mirror of synced 2024-09-03 11:11:49 +12:00

Change submit if sheets not selected

This commit is contained in:
Adria Navarro 2023-06-07 14:34:31 +01:00
parent 7c39946584
commit 23350016e2

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()
}, },