Kaynağa Gözat

import toastr

Shun Miyazawa 4 yıl önce
ebeveyn
işleme
28f8176211

+ 9 - 2
src/client/js/components/Admin/Users/UserInviteModal.jsx

@@ -9,6 +9,7 @@ import {
   Modal, ModalHeader, ModalBody, ModalFooter,
   Modal, ModalHeader, ModalBody, ModalFooter,
 } from 'reactstrap';
 } from 'reactstrap';
 
 
+import * as toastr from 'toastr';
 import { toastSuccess, toastError, toastWarning } from '../../../util/apiNotification';
 import { toastSuccess, toastError, toastWarning } from '../../../util/apiNotification';
 
 
 import { withUnstatedContainers } from '../../UnstatedUtils';
 import { withUnstatedContainers } from '../../UnstatedUtils';
@@ -55,9 +56,15 @@ class UserInviteModal extends React.Component {
         msg = `Existing email<br>${msg}`;
         msg = `Existing email<br>${msg}`;
         toastWarning(msg);
         toastWarning(msg);
         break;
         break;
-      // TODO: GW-6496
       case 'error':
       case 'error':
-        toastError(msg);
+        toastr.error(msg, 'Error', {
+          closeButton: true,
+          progressBar: true,
+          newestOnTop: false,
+          showDuration: '100',
+          hideDuration: '100',
+          timeOut: '0',
+        });
         break;
         break;
     }
     }
   }
   }