[ADF-325] added attach folder widget (#2831)

[ADF-325] added new attach folder widget
This commit is contained in:
Vito
2018-01-16 15:28:39 +01:00
committed by Eugenio Romano
parent 3671c12f35
commit 66262c4822
12 changed files with 393 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ import { CardViewUpdateService } from './services/card-view-update.service';
MatIconModule,
MatButtonModule,
MatDatetimepickerModule,
MatNativeDatetimeModule
MatNativeDatetimeModule
],
declarations: [
CardViewComponent,
@@ -69,7 +69,7 @@ import { CardViewUpdateService } from './services/card-view-update.service';
CardViewBoolItemComponent,
CardViewDateItemComponent,
CardViewMapItemComponent,
CardViewTextItemComponent
CardViewTextItemComponent
],
exports: [
CardViewComponent,

View File

@@ -455,7 +455,7 @@ export class ViewerComponent implements OnChanges {
this.urlFileContent = this.apiService.contentApi.getRenditionUrl(nodeId, 'pdf');
} else if (status === 'NOT_CREATED') {
try {
await this.renditionService.convert(nodeId, 'pdf').toPromise()
await this.renditionService.convert(nodeId, 'pdf').toPromise();
this.viewerType = 'pdf';
this.urlFileContent = this.apiService.contentApi.getRenditionUrl(nodeId, 'pdf');
} catch {