mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat: keep modal open when saving database failed (#11618)
This commit is contained in:
@@ -132,6 +132,7 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
|
||||
if (canCreate) {
|
||||
menuData.buttons = [
|
||||
{
|
||||
'data-test': 'btn-create-database',
|
||||
name: (
|
||||
<>
|
||||
<i className="fa fa-plus" /> {t('Database')}{' '}
|
||||
@@ -295,6 +296,7 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
|
||||
>
|
||||
<span
|
||||
role="button"
|
||||
data-test="database-edit"
|
||||
tabIndex={0}
|
||||
className="action-button"
|
||||
onClick={handleEdit}
|
||||
|
||||
Reference in New Issue
Block a user