feat: add success message for database modal (#18183)

This commit is contained in:
Phillip Kelley-Dotson 2022-01-26 15:52:15 -08:00 committed by GitHub
parent fa11a97585
commit ac564ea6b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -597,6 +597,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
}
if (!editNewDb) {
onClose();
addSuccessToast(t('Database settings updated'));
}
}
} else if (db) {
@ -615,6 +616,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
// tab layout only has one step
// so it should close immediately on save
onClose();
addSuccessToast(t('Database connected'));
}
}
}