fix mat datetime picker regression

This commit is contained in:
Eugenio Romano
2018-08-09 13:35:56 +01:00
parent f5e264d0fc
commit 6b8bd4685c
8 changed files with 58 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ import { MatTabChangeEvent } from '@angular/material';
export class InfoDrawerTabComponent {
/** The title of the tab. */
@Input()
label: string = 'Main tab';
label: string = '';
/** Icon to render for the tab. */
@Input()

View File

@@ -25,6 +25,8 @@
"@angular/platform-browser": ">=5.1.1",
"@angular/platform-browser-dynamic": ">=5.1.1",
"@angular/router": ">=5.1.1",
"@mat-datetimepicker/core": "1.0.4",
"@mat-datetimepicker/moment": "1.0.4",
"alfresco-js-api": "2.5.0-beta2",
"rxjs": ">=6.2.2",
"@ngx-translate/core": "^10.0.2",

View File

@@ -348,7 +348,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
this.mimeType = data.content.mimeType;
}
this.displayName = data.name;
this.displayName = this.getDisplayName(data.name);
this.urlFileContent = this.apiService.contentApi.getContentUrl(data.id);
this.urlFileContent = this.cacheBusterNumber ? this.urlFileContent + '&' + this.cacheBusterNumber : this.urlFileContent;