feat: keep modal open when saving database failed (#11618)

This commit is contained in:
Jesse Yang
2020-11-12 16:10:14 -08:00
committed by GitHub
parent 3ad65bc163
commit ec8ccd4cf1
10 changed files with 142 additions and 44 deletions

View File

@@ -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}