2018-02-01 23:29:33 +01:00
|
|
|
import * as actions from 'constants/show_action_types';
|
|
|
|
|
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,
|
2018-02-06 20:55:46 +01:00
|
|
|
data: {
|
|
|
|
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-06 20:55:46 +01:00
|
|
|
type: actions.REQUEST_UPDATE_CLAIM,
|
|
|
|
data: {
|
|
|
|
name,
|
|
|
|
modifier: {
|
|
|
|
id,
|
|
|
|
channel: {
|
|
|
|
name: channelName,
|
|
|
|
id : channelId,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
2018-02-06 20:55:46 +01:00
|
|
|
data: {
|
|
|
|
name,
|
|
|
|
longId,
|
|
|
|
shortId,
|
|
|
|
},
|
2018-02-03 03:16:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function updateChannelClaimsData (claims, currentPage, totalPages, totalClaims) {
|
|
|
|
return {
|
|
|
|
type: actions.CHANNEL_CLAIMS_DATA_UPDATE,
|
2018-02-06 20:55:46 +01:00
|
|
|
data: {
|
|
|
|
claims,
|
|
|
|
currentPage,
|
|
|
|
totalPages,
|
|
|
|
totalClaims,
|
|
|
|
},
|
2018-02-03 03:16:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-05 02:43:02 +01:00
|
|
|
export function updateAssetClaimData (data, shortId) {
|
2018-02-03 03:16:18 +01:00
|
|
|
return {
|
|
|
|
type: actions.ASSET_CLAIM_DATA_UPDATE,
|
2018-02-06 20:55:46 +01:00
|
|
|
data: {
|
|
|
|
data,
|
|
|
|
shortId,
|
|
|
|
},
|
2018-02-03 03:16:18 +01:00
|
|
|
};
|
|
|
|
};
|