Skip to content
Snippets Groups Projects
Commit e28be423 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13349 TIME 0:20 increment nb follow after actions when indexing

parent aa021937
No related branches found
No related tags found
No related merge requests found
...@@ -121,10 +121,6 @@ export class ActionsService { ...@@ -121,10 +121,6 @@ export class ActionsService {
if (this.setActionInformations(action, userId, groupId, null, null)) { if (this.setActionInformations(action, userId, groupId, null, null)) {
this.setResourceInformations(datas); this.setResourceInformations(datas);
if (datas['followed']) {
this.headerService.nbResourcesFollowed++;
}
this.loading = true; this.loading = true;
try { try {
this[action.component](); this[action.component]();
...@@ -246,6 +242,10 @@ export class ActionsService { ...@@ -246,6 +242,10 @@ export class ActionsService {
} }
endAction(resIds: any) { endAction(resIds: any) {
if (!this.functions.empty(this.currentResourceInformations['followed']) && this.currentResourceInformations['followed']) {
this.headerService.nbResourcesFollowed++;
}
this.notify.success(this.lang.action + ' : "' + this.currentAction.label + '" ' + this.lang.done); this.notify.success(this.lang.action + ' : "' + this.currentAction.label + '" ' + this.lang.done);
this.eventAction.next(resIds); this.eventAction.next(resIds);
......
...@@ -44,7 +44,7 @@ export class CloseMailActionComponent implements OnInit { ...@@ -44,7 +44,7 @@ export class CloseMailActionComponent implements OnInit {
checkIndexingClose() { checkIndexingClose() {
this.http.get(`../../rest/actions/${this.data.action.id}`).pipe( this.http.get(`../../rest/actions/${this.data.action.id}`).pipe(
tap((data: any) => { tap((data: any) => {
this.requiredFields = data.action.parameters; this.requiredFields = data.action.parameters.requiredFields;
}), }),
exhaustMap(() => this.http.get(`../../rest/customFields`)), exhaustMap(() => this.http.get(`../../rest/customFields`)),
tap((data: any) => this.customFields = data.customFields), tap((data: any) => this.customFields = data.customFields),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment