Skip to content
Snippets Groups Projects
Verified Commit 2d1b976e authored by Florian Azizian's avatar Florian Azizian
Browse files

Remove confirm modal in classify document

parent 382ba833
No related branches found
No related tags found
No related merge requests found
......@@ -145,14 +145,8 @@ export class FoldersService {
}
classifyDocument(ev: any, folder: any) {
const dialogRef = this.dialog.open(ConfirmComponent, { autoFocus: false, disableClose: true, data: { title: this.lang.classify + ' ' + ev.item.data.chrono, msg: this.lang.classifyQuestion + ' <b>' + ev.item.data.chrono + '</b> ' + this.lang.in + ' <b>' + folder.label + '</b>&nbsp;?' } });
dialogRef.afterClosed().pipe(
filter((data: string) => data === 'ok'),
exhaustMap(() => this.http.post(`../../rest/folders/${folder.id}/resources`, { resources: [ev.item.data.resId] })),
this.http.post(`../../rest/folders/${folder.id}/resources`, { resources: [ev.item.data.resId] }).pipe(
tap((data: any) => {
if (this.pinnedFolders.filter((pinFolder: any) => pinFolder.id === folder.id)[0] !== undefined) {
this.pinnedFolders.filter((pinFolder: any) => pinFolder.id === folder.id)[0].countResources = data.countResources;
}
......
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