@plusscommunities/pluss-core-app 1.4.8 → 1.4.9
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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-core-app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "Core extension package for Pluss Communities platform",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
7
|
+
"betapatch": "npm version prepatch --preid=beta",
|
|
8
8
|
"patch": "npm version patch",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"betaupload": "npm publish --access public --tag beta && rm -rf node_modules",
|
|
10
|
+
"betaupload:p": "npm run betapatch && npm run betaupload",
|
|
11
11
|
"upload": "npm publish --access public && rm -rf node_modules",
|
|
12
12
|
"upload:p": "npm run patch && npm run upload"
|
|
13
13
|
},
|
|
@@ -29,7 +29,7 @@ class CommentReply extends Component {
|
|
|
29
29
|
componentDidMount() {
|
|
30
30
|
if (this.props.commentSection && this.props.commentSection.current) {
|
|
31
31
|
this.setState({
|
|
32
|
-
commentsLoading: this.props.commentSection.current.
|
|
32
|
+
commentsLoading: this.props.commentSection.current.isLoading(),
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -94,13 +94,13 @@ class CommentReply extends Component {
|
|
|
94
94
|
});
|
|
95
95
|
Keyboard.dismiss();
|
|
96
96
|
if (this.props.commentSection) {
|
|
97
|
-
this.props.commentSection?.current?.
|
|
97
|
+
this.props.commentSection?.current?.startedAddingComment();
|
|
98
98
|
}
|
|
99
99
|
reactionActions
|
|
100
100
|
.addComment(this.props.entityId, this.props.entityType, this.props.entityName, this.props.site, text, image, this.props.threadId)
|
|
101
101
|
.then(res => {
|
|
102
102
|
if (this.props.commentSection) {
|
|
103
|
-
this.props.commentSection?.current?.
|
|
103
|
+
this.props.commentSection?.current?.commentAdded(res.data);
|
|
104
104
|
}
|
|
105
105
|
this.setState({
|
|
106
106
|
addingComment: false,
|
|
@@ -179,7 +179,7 @@ class CommentSection extends Component {
|
|
|
179
179
|
commentsLoadStarted: true,
|
|
180
180
|
commentsLoading: true,
|
|
181
181
|
});
|
|
182
|
-
this.props.commentReply?.current?.
|
|
182
|
+
this.props.commentReply?.current?.loadingStarted();
|
|
183
183
|
|
|
184
184
|
this.loadComments();
|
|
185
185
|
}
|
|
@@ -221,7 +221,7 @@ class CommentSection extends Component {
|
|
|
221
221
|
},
|
|
222
222
|
);
|
|
223
223
|
//if (this.props.commentReply) {
|
|
224
|
-
this.props.commentReply?.current?.
|
|
224
|
+
this.props.commentReply?.current?.loadingCompleted();
|
|
225
225
|
//}
|
|
226
226
|
if (this.props.live) {
|
|
227
227
|
this.loadTimer = setTimeout(() => {
|
|
@@ -231,9 +231,9 @@ class CommentSection extends Component {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
isLoading() {
|
|
234
|
+
isLoading = () => {
|
|
235
235
|
return this.state.commentsLoading;
|
|
236
|
-
}
|
|
236
|
+
};
|
|
237
237
|
|
|
238
238
|
startedAddingComment() {
|
|
239
239
|
this.setState({
|