2018-02-01 23:29:33 +01:00
|
|
|
import * as actions from 'constants/show_action_types';
|
|
|
|
// export action creators
|
|
|
|
|
2018-02-02 20:10:58 +01:00
|
|
|
export function updateRequestWithChannelRequest (name, id) {
|
2018-02-01 23:29:33 +01:00
|
|
|
return {
|
2018-02-02 20:10:58 +01:00
|
|
|
type: actions.REQUEST_UPDATE_CHANNEL,
|
|
|
|
name,
|
|
|
|
id,
|
2018-02-01 23:29:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-02 20:10:58 +01:00
|
|
|
export function updateRequestWithAssetRequest (name, id, channelName, channelId, extension) {
|
2018-02-01 23:29:33 +01:00
|
|
|
return {
|
2018-02-02 20:10:58 +01:00
|
|
|
type : actions.REQUEST_UPDATE_CLAIM,
|
|
|
|
name,
|
|
|
|
id,
|
|
|
|
channelName: null,
|
|
|
|
channelId : null,
|
|
|
|
extension,
|
2018-02-01 23:29:33 +01:00
|
|
|
};
|
|
|
|
};
|
2018-02-03 03:16:18 +01:00
|
|
|
|
|
|
|
export function updateChannelData (name, longId, shortId) {
|
|
|
|
return {
|
|
|
|
type: actions.CHANNEL_DATA_UPDATE,
|
|
|
|
name,
|
|
|
|
longId,
|
|
|
|
shortId,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function updateChannelClaimsData (claims, currentPage, totalPages, totalClaims) {
|
|
|
|
return {
|
|
|
|
type: actions.CHANNEL_CLAIMS_DATA_UPDATE,
|
|
|
|
claims,
|
|
|
|
currentPage,
|
|
|
|
totalPages,
|
|
|
|
totalClaims,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function updateAssetClaimData (data) {
|
|
|
|
return {
|
|
|
|
type: actions.ASSET_CLAIM_DATA_UPDATE,
|
|
|
|
data,
|
|
|
|
};
|
|
|
|
};
|