mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
code cleanup (#3210)
* code cleanup * rollback changes * remove dead code * remove debug app config * cleanup unused locales * no-unused-vars rule * test fixes and cleanup * remove unnecessary translate modules
This commit is contained in:
@@ -44,9 +44,9 @@ import { UploadService, FileModel } from '@alfresco/adf-content-services';
|
||||
|
||||
@Injectable()
|
||||
export class UploadEffects {
|
||||
private fileInput: HTMLInputElement;
|
||||
private folderInput: HTMLInputElement;
|
||||
private fileVersionInput: HTMLInputElement;
|
||||
private readonly fileInput: HTMLInputElement;
|
||||
private readonly folderInput: HTMLInputElement;
|
||||
private readonly fileVersionInput: HTMLInputElement;
|
||||
private readonly uploadMenuButtonSelector = 'app-toolbar-menu button[id="app.toolbar.upload"]';
|
||||
|
||||
constructor(
|
||||
@@ -132,7 +132,7 @@ export class UploadEffects {
|
||||
this.contentService
|
||||
.getNodeInfo()
|
||||
.pipe(
|
||||
catchError((_) => {
|
||||
catchError(() => {
|
||||
this.store.dispatch(new SnackbarErrorAction('VERSION.ERROR.GENERIC'));
|
||||
return of(null);
|
||||
})
|
||||
|
@@ -180,7 +180,7 @@ export class ViewerEffects {
|
||||
|
||||
let previewLocation = this.router.url;
|
||||
if (previewLocation.lastIndexOf('/') > 0) {
|
||||
previewLocation = previewLocation.substr(0, this.router.url.indexOf('/', 1));
|
||||
previewLocation = previewLocation.substring(0, this.router.url.indexOf('/', 1));
|
||||
}
|
||||
previewLocation = previewLocation.replace(/\//g, '');
|
||||
|
||||
|
Reference in New Issue
Block a user