Explorar el Código

create toastWarning

Shun Miyazawa hace 4 años
padre
commit
6cc7de199b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/client/js/util/apiNotification.js

+ 4 - 0
src/client/js/util/apiNotification.js

@@ -35,3 +35,7 @@ export const toastError = (err, header = 'Error', option = toastrOption.error) =
 export const toastSuccess = (body, header = 'Success', option = toastrOption.success) => {
 export const toastSuccess = (body, header = 'Success', option = toastrOption.success) => {
   toastr.success(body, header, option);
   toastr.success(body, header, option);
 };
 };
+
+export const toastWarning = (body, header = 'Warning', option = toastrOption.warning) => {
+  toastr.warning(body, header, option);
+};