Helo everyone,
The problem :
I try to preview a document i just attached to a form.
When i click on it, the overlay works and i can view my attachment.
When i close it, i go back to my form but completely "frozen".
(In fact, the url don't change : it's still with a `http://localhost:4200/apps/XXXXX/tasks/YYYYY(overlayreview/blob)`)
I have to the refresh the page in order to have my form again.
What did i do wrong ?
I actually use the "native" component generated with ADF-APS :
Steps to reproduce :
Can anyone help me with this ?
I'm using :
ADF : 3.5
APS : 1.9
Language : FR
Errors
Code
blob-view.component.html
<adf-viewer [blobFile]="content" [displayName]="name" [showViewer]="true"> </adf-viewer>
blob-view.component.ts
@Component({ templateUrl: 'bob-view.component.html' }) export class BlobViewComponent { content: Blob; name: string; constructor(protected preview: PreviewService, protected router: Router ) { if (preview.content === null || preview.name === null) { router.navigate([{outlets: {overlay: null}}]); return; } this.content = preview.content; this.name = preview.name; } }
app.route.ts
export const appRoutes: Routes = [ { path: 'files/:nodeId/view', component: FileViewComponent, canActivate: [AuthGuardEcm], outlet: 'overlay' }, { path: 'preview/blob', component: BlobViewComponent, outlet: 'overlay', pathMatch: 'full' }, [...] ];
It sounds like a bug.
What the browser's console says when you click the link the second time and you get the error?
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.