Verified Commit 1949c3ab authored by Alex ORLUC's avatar Alex ORLUC

FIX #11291 TIME 0:15 fix refresh

parent 0f99bb26
......@@ -107,6 +107,7 @@ export class FolderTreeComponent implements OnInit {
@ViewChild('tree', { static: true }) tree: any;
@Output('refreshDocList') refreshDocList = new EventEmitter<string>();
@Output('refreshFolderList') refreshFolderList = new EventEmitter<string>();
constructor(
public http: HttpClient,
......@@ -405,7 +406,11 @@ export class FolderTreeComponent implements OnInit {
this.dialogRef = this.dialog.open(FolderUpdateComponent, { autoFocus: false, data: { folderId: node.id } });
this.dialogRef.afterClosed().pipe(
tap((data) => {
if (data !== undefined) {
this.getFolders();
}
})
).subscribe();
}
......
......@@ -182,8 +182,7 @@ export class FolderUpdateComponent implements OnInit {
exhaustMap(() => this.http.put('../../rest/folders/' + this.folder.id + '/sharing', { public: this.folder.sharing.entities.length > 0, sharing: this.folder.sharing })),
tap((data: any) => {
this.notify.success('Dossier modifié');
window.location.reload();
this.dialogRef.close();
this.dialogRef.close('success');
}),
catchError((err: any) => {
this.notify.handleErrors(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment