mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1455] universal Viewer @effect (#412)
* viewer @effect * universal preview effect * remove router where not needed * update tests * update tests
This commit is contained in:
committed by
Cilibiu Bogdan
parent
d1e5353d7a
commit
f8fe664f1f
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { UserPreferencesService, UploadService } from '@alfresco/adf-core';
|
||||
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
@@ -38,14 +38,13 @@ import { AppStore } from '../../store/states/app.state';
|
||||
})
|
||||
export class SharedFilesComponent extends PageComponent implements OnInit {
|
||||
|
||||
constructor(router: Router,
|
||||
route: ActivatedRoute,
|
||||
constructor(route: ActivatedRoute,
|
||||
store: Store<AppStore>,
|
||||
private uploadService: UploadService,
|
||||
private content: ContentManagementService,
|
||||
public permission: NodePermissionService,
|
||||
preferences: UserPreferencesService) {
|
||||
super(preferences, router, route, store);
|
||||
super(preferences, route, store);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -58,10 +57,4 @@ export class SharedFilesComponent extends PageComponent implements OnInit {
|
||||
this.uploadService.fileUploadError.subscribe((error) => this.onFileUploadedError(error))
|
||||
]);
|
||||
}
|
||||
|
||||
onNodeDoubleClick(link: { nodeId?: string }) {
|
||||
if (link && link.nodeId) {
|
||||
this.router.navigate(['./preview', link.nodeId], { relativeTo: this.route });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user