mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix demo shell issues (lint)
This commit is contained in:
@@ -113,8 +113,8 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit {
|
|||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private apiService: AlfrescoApiService,
|
private apiService: AlfrescoApiService,
|
||||||
private formRenderingService: FormRenderingService,
|
// private formRenderingService: FormRenderingService,
|
||||||
private formService: FormService) {
|
formService: FormService) {
|
||||||
this.dataTasks = new ObjectDataTableAdapter();
|
this.dataTasks = new ObjectDataTableAdapter();
|
||||||
this.dataTasks.setSorting(new DataSorting('created', 'desc'));
|
this.dataTasks.setSorting(new DataSorting('created', 'desc'));
|
||||||
|
|
||||||
|
@@ -15,10 +15,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Location } from '@angular/common';
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Subscription } from 'rxjs/Rx';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'activiti-show-diagram',
|
selector: 'activiti-show-diagram',
|
||||||
@@ -31,8 +29,7 @@ export class ActivitiShowDiagramComponent {
|
|||||||
appId: string;
|
appId: string;
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute,
|
constructor(private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router) {
|
||||||
private location: Location) {
|
|
||||||
this.route.params.subscribe(params => {
|
this.route.params.subscribe(params => {
|
||||||
this.processDefinitionId = params['processDefinitionId'];
|
this.processDefinitionId = params['processDefinitionId'];
|
||||||
this.appId = params['appId'];
|
this.appId = params['appId'];
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { AppDefinitionRepresentationModel } from 'ng2-activiti-tasklist';
|
import { AppDefinitionRepresentationModel } from 'ng2-activiti-tasklist';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -27,7 +27,7 @@ import { AppDefinitionRepresentationModel } from 'ng2-activiti-tasklist';
|
|||||||
})
|
})
|
||||||
export class ActivitiAppsViewComponent {
|
export class ActivitiAppsViewComponent {
|
||||||
|
|
||||||
constructor(private router: Router, private route: ActivatedRoute) {
|
constructor(private router: Router) {
|
||||||
}
|
}
|
||||||
|
|
||||||
onAppClicked(app: AppDefinitionRepresentationModel) {
|
onAppClicked(app: AppDefinitionRepresentationModel) {
|
||||||
|
@@ -18,12 +18,12 @@
|
|||||||
import { ChangeDetectorRef, Component, Input, OnInit, Optional, ViewChild } from '@angular/core';
|
import { ChangeDetectorRef, Component, Input, OnInit, Optional, ViewChild } from '@angular/core';
|
||||||
import { MdDialog } from '@angular/material';
|
import { MdDialog } from '@angular/material';
|
||||||
import { ActivatedRoute, Params } from '@angular/router';
|
import { ActivatedRoute, Params } from '@angular/router';
|
||||||
import { DownloadEntry, MinimalNodeEntity } from 'alfresco-js-api';
|
import { MinimalNodeEntity } from 'alfresco-js-api';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService, AlfrescoContentService, FileUploadCompleteEvent,
|
AlfrescoApiService, AlfrescoContentService, FileUploadCompleteEvent,
|
||||||
FolderCreatedEvent, NotificationService, PermissionsEnum, SiteModel, UploadService
|
FolderCreatedEvent, NotificationService, SiteModel, UploadService
|
||||||
} from 'ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
import { DocumentListComponent, DropdownSitesComponent, PermissionStyleModel } from 'ng2-alfresco-documentlist';
|
import { DocumentListComponent, PermissionStyleModel } from 'ng2-alfresco-documentlist';
|
||||||
|
|
||||||
import { CreateFolderDialogComponent } from '../../dialogs/create-folder.dialog';
|
import { CreateFolderDialogComponent } from '../../dialogs/create-folder.dialog';
|
||||||
import { DownloadZipDialogComponent } from './../../dialogs/download-zip.dialog';
|
import { DownloadZipDialogComponent } from './../../dialogs/download-zip.dialog';
|
||||||
@@ -203,7 +203,6 @@ export class FilesComponent implements OnInit {
|
|||||||
|
|
||||||
downloadFile(node: MinimalNodeEntity) {
|
downloadFile(node: MinimalNodeEntity) {
|
||||||
if (node && node.entry) {
|
if (node && node.entry) {
|
||||||
const nodesApi = this.apiService.getInstance().core.nodesApi;
|
|
||||||
const contentApi = this.apiService.getInstance().content;
|
const contentApi = this.apiService.getInstance().content;
|
||||||
|
|
||||||
const url = contentApi.getContentUrl(node.entry.id, true);
|
const url = contentApi.getContentUrl(node.entry.id, true);
|
||||||
|
Reference in New Issue
Block a user