@saooti/octopus-sdk 30.0.36 → 30.0.37

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/README.md CHANGED
@@ -533,4 +533,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
533
533
  * 30.0.33 Pb categories list
534
534
  * 30.0.34 Bouton css
535
535
  * 30.0.35 Commentaires
536
- * 30.0.36 LiveList
536
+ * 30.0.36 LiveList
537
+ * 30.0.37 Commentaires
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.36",
3
+ "version": "30.0.37",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -122,6 +122,7 @@ export default defineComponent({
122
122
  methods: {
123
123
  async fetchContent(reset=true): Promise<void> {
124
124
  this.loading = true;
125
+ this.error = false;
125
126
  if(reset){
126
127
  this.first = 0;
127
128
  }
@@ -134,7 +135,7 @@ export default defineComponent({
134
135
  first: this.first,
135
136
  size: this.size,
136
137
  podcastId: this.podcastId,
137
- status:this.editRight && this.status?[this.status]:['Valid'],
138
+ status:this.editRight && this.status?[this.status]: this.editRight? ['Valid','Pending', 'Invalid']:['Valid'],
138
139
  organisationId: undefined === this.podcastId? this.organisation: undefined,
139
140
  };
140
141
  if (!this.isFlat) {
@@ -209,9 +210,9 @@ export default defineComponent({
209
210
  if (-1 !== indexNewComment) {
210
211
  if (!this.status || this.status === data.status) {
211
212
  this.comments.splice(indexNewComment, 0, data.comment);
212
- } else {
213
+ } /* else {
213
214
  this.comments.splice(indexNewComment, 1);
214
- }
215
+ } */
215
216
  } else if (!this.status || this.status === data.status) {
216
217
  this.comments.push(data.comment);
217
218
  }