[actions, api] Live alarm 설정/해제 추가
Detail Notes : 1. IF-LGSP-012, actionTypes, action 추가 2. IF-LGSP-306, 네트워크 상태 관리 예외 처리
This commit is contained in:
@@ -82,15 +82,17 @@ export const getBrandLayoutInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
// Featured Brands Live 채널 정보 조회 IF-LGSP-306
|
||||
export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
|
||||
const { patnrId } = props;
|
||||
const { patnrId, upcoming } = props;
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_LIVE_CHANNEL_INFO,
|
||||
payload: {
|
||||
data: getState().brand.brandLiveChannelInfoData.data,
|
||||
status: "pending",
|
||||
},
|
||||
});
|
||||
if (upcoming === undefined) {
|
||||
dispatch({
|
||||
type: types.GET_BRAND_LIVE_CHANNEL_INFO,
|
||||
payload: {
|
||||
data: getState().brand.brandLiveChannelInfoData.data,
|
||||
status: "pending",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("@@ getBrandLiveChannelInfo onSuccess ", response.data);
|
||||
|
||||
Reference in New Issue
Block a user