dbeaver/pro#9426 feat: add loading state to save button (#4487)

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
Sychev Andrey
2026-07-23 16:30:31 +02:00
committed by GitHub
co-authored by Evgenia
parent 0afdd06c80
commit 6042f16342
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 DBeaver Corp and others
* Copyright (C) 2020-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
@@ -74,7 +74,7 @@ export const TeamForm = observer<Props>(function TeamForm({ state, onCancel, onS
<Button type="button" disabled={state.isDisabled} variant="secondary" onClick={onCancel}>
{translate('ui_processing_cancel')}
</Button>
<Button type="button" disabled={state.isDisabled || !state.isChanged} onClick={() => form.submit()}>
<Button type="button" loading={state.isSaving} disabled={state.isDisabled || !state.isChanged} onClick={() => form.submit()}>
{translate(!editing ? 'ui_processing_create' : 'ui_processing_save')}
</Button>
</Container>