@plusscommunities/pluss-newsletter-app-menu 1.2.26 → 1.2.30

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-newsletter-app-menu",
3
- "version": "1.2.26",
3
+ "version": "1.2.30",
4
4
  "description": "Extension package to enable newsletter on Pluss Communities Platform",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "author": "Phillip Suh",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@plusscommunities/pluss-core-app": "1.2.4",
20
+ "@plusscommunities/pluss-core-app": "1.3.0",
21
21
  "axios": "^0.16.2",
22
22
  "lodash": "^4.17.4",
23
23
  "moment": "^2.18.1",
@@ -89,6 +89,10 @@ class NewsletterPost extends Component {
89
89
  this.checkLog(res.data);
90
90
  });
91
91
  }
92
+
93
+ setTimeout(() => {
94
+ if (this.props.scrollToBottom && this.scrollView) this.scrollView.scrollToEnd({ animated: true });
95
+ }, 2000);
92
96
  }
93
97
 
94
98
  componentWillUnmount() {
@@ -375,7 +379,7 @@ class NewsletterPost extends Component {
375
379
  }}
376
380
  commentReply={this.commentReply}
377
381
  adminPermission="newsletter"
378
- entityType="news"
382
+ entityType={values.featureKey}
379
383
  entityId={this.state.update.RowId}
380
384
  live
381
385
  refreshFrequency={10000}
@@ -394,7 +398,7 @@ class NewsletterPost extends Component {
394
398
  }}
395
399
  commentSection={this.commentSection}
396
400
  scrollView={this.scrollView}
397
- entityType="news"
401
+ entityType={values.featureKey}
398
402
  entityId={this.state.update.RowId}
399
403
  entityName={this.state.update.Title}
400
404
  site={this.state.update.Site}