Explorar o código

create toastWarning

Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
6cc7de199b
Modificáronse 1 ficheiros con 4 adicións e 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) => {
   toastr.success(body, header, option);
 };
+
+export const toastWarning = (body, header = 'Warning', option = toastrOption.warning) => {
+  toastr.warning(body, header, option);
+};