Add spinner while saving datasources

This commit is contained in:
Adria Navarro 2023-06-14 17:07:47 +01:00
parent fa835e65ef
commit bfc6bb6a6e
1 changed files with 13 additions and 1 deletions

View File

@ -22,6 +22,7 @@
import ImportRestQueriesModal from "components/backend/DatasourceNavigator/modals/ImportRestQueriesModal.svelte"
import { API } from "api"
import { DatasourceFeature } from "@budibase/types"
import Spinner from "components/common/Spinner.svelte"
const querySchema = {
name: {},
@ -129,7 +130,12 @@
cta
on:click={saveDatasource}
>
Save
<div class="save-button-content">
{#if loading}
<Spinner size="10">Save</Spinner>
{/if}
Save
</div>
</Button>
</div>
<IntegrationConfigForm
@ -225,4 +231,10 @@
flex-direction: column;
gap: var(--spacing-m);
}
.save-button-content {
display: flex;
align-items: center;
gap: var(--spacing-s);
}
</style>