How to use the @alfresco/adf-core.FileUploadStatus.Cancelled function in @alfresco/adf-core

To help you get started, we’ve selected a few @alfresco/adf-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Alfresco / alfresco-content-app / src / app / components / upload-dialog / file-uploading-dialog.component.ts View on Github external
this.uploadService.fileDeleted.subscribe(objId => {
      if (this.filesUploadingList) {
        const file = this.filesUploadingList.find(item => {
          return item.data.entry.id === objId;
        });
        if (file) {
          file.status = FileUploadStatus.Cancelled;
          this.changeDetector.detectChanges();
        }
      }
    });
  }
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / upload / components / file-uploading-dialog.component.ts View on Github external
.subscribe(objId => {
                if (this.filesUploadingList) {
                    const file = this.filesUploadingList.find((item) => {
                        return item.data.entry.id === objId;
                    });
                    if (file) {
                        file.status = FileUploadStatus.Cancelled;
                        this.changeDetector.detectChanges();
                    }
                }
            });
github Alfresco / alfresco-ng2-components / lib / content-services / upload / components / file-uploading-dialog.component.ts View on Github external
.subscribe(objId => {
                if (this.filesUploadingList) {
                    const file = this.filesUploadingList.find((item) => {
                        return item.data.entry.id === objId;
                    });
                    if (file) {
                        file.status = FileUploadStatus.Cancelled;
                        this.changeDetector.detectChanges();
                    }
                }
            });
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / upload / components / file-uploading-list.component.ts View on Github external
cancelFile(file: FileModel): void {
        if (file.status === FileUploadStatus.Pending) {
            file.status = FileUploadStatus.Cancelled;
        } else {
            this.uploadService.cancelUpload(file);
        }
    }
github Alfresco / alfresco-ng2-components / lib / content-services / upload / components / file-uploading-list-row.component.ts View on Github external
showCancelledStatus(): boolean {
        return this.file.status === FileUploadStatus.Cancelled ||
            this.file.status === FileUploadStatus.Aborted ||
            this.file.status === FileUploadStatus.Deleted;
    }
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / upload / components / file-uploading-list.component.ts View on Github external
({ status }) =>
                    status === FileUploadStatus.Aborted ||
                    status === FileUploadStatus.Cancelled ||
                    status === FileUploadStatus.Deleted
            )
github Alfresco / alfresco-ng2-components / lib / content-services / upload / components / file-uploading-list.component.ts View on Github external
cancelFile(file: FileModel): void {
        if (file.status === FileUploadStatus.Pending) {
            file.status = FileUploadStatus.Cancelled;
        } else {
            this.uploadService.cancelUpload(file);
        }
    }
github Alfresco / alfresco-ng2-components / lib / content-services / upload / components / file-uploading-list.component.ts View on Github external
({ status }) =>
                    status === FileUploadStatus.Aborted ||
                    status === FileUploadStatus.Cancelled ||
                    status === FileUploadStatus.Deleted
            )