mirror of
https://dev.azure.com/tstanciu94/ReverseProxy/_git/ReverseProxy_Frontend
synced 2025-08-05 17:22:36 +03:00
25 lines
499 B
JavaScript
25 lines
499 B
JavaScript
import * as types from "./actionTypes";
|
|
|
|
export function showInfo(msg) {
|
|
return { type: types.SHOW_SNACKBAR_INFO, payload: msg };
|
|
}
|
|
|
|
export function showSuccess(msg) {
|
|
return { type: types.SHOW_SNACKBAR_SUCCESS, payload: msg };
|
|
}
|
|
|
|
export function showError(msg, correlationId) {
|
|
return {
|
|
type: types.SHOW_SNACKBAR_ERROR,
|
|
payload: msg,
|
|
correlationId: correlationId
|
|
};
|
|
}
|
|
|
|
export function showWarning(msg) {
|
|
return {
|
|
type: types.SHOW_SNACKBAR_WARNING,
|
|
payload: msg
|
|
};
|
|
}
|