@capillarytech/creatives-library 7.3.6 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/favicon.ico
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
CapTooltip,
|
|
23
23
|
} from '@capillarytech/cap-ui-library';
|
|
24
24
|
import { FONT_SIZE_L } from '@capillarytech/cap-ui-library/styled/variables';
|
|
25
|
-
import { find, cloneDeep, findIndex, isEmpty, isEqual, filter, flattenDeep } from 'lodash';
|
|
25
|
+
import { find, cloneDeep, findIndex, isEmpty, isEqual, filter, flattenDeep, replace } from 'lodash';
|
|
26
26
|
import * as actions from './actions';
|
|
27
27
|
import { makeSelectFTP, makeSelectMetaEntities } from './selectors';
|
|
28
28
|
import { setInjectedTags } from '../Cap/selectors';
|
|
@@ -481,7 +481,7 @@ export class FTP extends React.Component {
|
|
|
481
481
|
const { headerTagList } = this.state;
|
|
482
482
|
const clonedHeaderTagList = cloneDeep(headerTagList);
|
|
483
483
|
const optionValue = option.substring(this.indexOfEnd(option, '{{'), option.indexOf('}}'));
|
|
484
|
-
let
|
|
484
|
+
let readableOptionValue = replace(optionValue, /_/g, ' ');
|
|
485
485
|
readableOptionValue = readableOptionValue[0].toUpperCase() + readableOptionValue.slice(1);
|
|
486
486
|
const obj = {
|
|
487
487
|
header: readableOptionValue,
|
|
@@ -11,8 +11,11 @@ export function* createTemplate(template) {
|
|
|
11
11
|
try {
|
|
12
12
|
console.log('saga createTemplate mobilepush', template);
|
|
13
13
|
const result = yield call(Api.createMobilePushTemplate, template);
|
|
14
|
-
if (result.message
|
|
14
|
+
if (result.message) {
|
|
15
15
|
errorMsg = result.message;
|
|
16
|
+
if(result.status.code>=400){
|
|
17
|
+
throw errorMsg;
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
if (template.callback) {
|
|
18
21
|
yield call(template.callback, result.response);
|