mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
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:
+2
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user