kaori 3 лет назад
Родитель
Сommit
44b85f6784
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/app/src/components/Me/AssociateModal.tsx

+ 3 - 2
packages/app/src/components/Me/AssociateModal.tsx

@@ -8,7 +8,7 @@ import {
   ModalFooter,
 } from 'reactstrap';
 
-
+import { toastSuccess } from '~/client/util/apiNotification';
 import { usePersonalSettings, useSWRxPersonalExternalAccounts } from '~/stores/personal-settings';
 
 import LdapAuthTest from '../Admin/Security/LdapAuthTest';
@@ -39,8 +39,9 @@ const AssociateModal = (props: Props): JSX.Element => {
     mutatePersonalExternalAccounts();
 
     closeModalHandler();
+    toastSuccess(t('security_setting.updated_general_security_setting'));
 
-  }, [associateLdapAccount, closeModalHandler, mutatePersonalExternalAccounts, password, username]);
+  }, [associateLdapAccount, closeModalHandler, mutatePersonalExternalAccounts, password, t, username]);
 
 
   return (