@capillarytech/creatives-library 0.1.7 → 0.1.10

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.
@@ -723,7 +723,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
723
723
  this.setState({isDragDrop: true});
724
724
  if (this.props.params.id) {
725
725
  this.props.actions.getCmsSetting('edm', this.props.Templates.edmTemplate.versions.base.drag_drop_id, 'open', undefined, isEdmSupport);
726
- } else {
726
+ } else if (this.props.location.query.module !== "library" || (this.props.location.query.module === "library" && !this.props.templateData)) {
727
727
  this.props.actions.getCmsSetting('edm', this.props.Templates.edmTemplate.versions.base.drag_drop_id, 'create', undefined, isEdmSupport);
728
728
  }
729
729
  }
@@ -277,6 +277,10 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
277
277
  const isLanguageSupport = (this.props.location.query.isLanguageSupport) ? this.props.location.query.isLanguageSupport : true;
278
278
  const isEdmSupport = (this.props.location.query.isEdmSupport !== "false") || false;
279
279
  const type = this.props.location.query.type;
280
+ if (module && module === 'library') {
281
+ this.props.createNew();
282
+ return;
283
+ }
280
284
  this.props.router.push({
281
285
  pathname: `/${nextProps.route.name.toLowerCase()}/create`,
282
286
  query: type === 'embedded' ? {type: 'embedded', module, isLanguageSupport, isEdmSupport} : {module},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "0.1.7",
4
+ "version": "0.1.10",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",