[ACA-2288] Music / video stops playing when opening the Info drawer in the viewer (#1146)

* [ACA-2288] avoid triggering ngOnChanges on showRightSide toggle

* [ACA-2288] code review change

* check mediumDate corresponding format
This commit is contained in:
Suzana Dirla 2019-07-02 13:24:35 +03:00 committed by Cilibiu Bogdan
parent ef8f779947
commit c83a3f53cc
3 changed files with 10 additions and 3 deletions

View File

@ -43,7 +43,7 @@ export const ADMIN_FULL_NAME = 'Administrator';
export const E2E_ROOT_PATH = __dirname; export const E2E_ROOT_PATH = __dirname;
// Dates // Dates
export const DATE_FORMAT = 'MMM DD, YYYY'; export const DATE_FORMAT = 'MMM D, YYYY';
export const DATE_TIME_FORMAT = 'MMM D, YYYY, H:mm'; export const DATE_TIME_FORMAT = 'MMM D, YYYY, H:mm';
// Application Routes // Application Routes

View File

@ -1,10 +1,13 @@
<ng-container *ngIf="nodeId"> <ng-container *ngIf="nodeId">
<adf-viewer <adf-viewer
[ngClass]="{
'right_side--hide': !showRightSide
}"
[nodeId]="nodeId" [nodeId]="nodeId"
[allowNavigate]="navigateMultiple" [allowNavigate]="navigateMultiple"
[allowRightSidebar]="showRightSide" [allowRightSidebar]="true"
[allowPrint]="false" [allowPrint]="false"
[showRightSidebar]="showRightSide" [showRightSidebar]="true"
[allowDownload]="false" [allowDownload]="false"
[allowFullScreen]="false" [allowFullScreen]="false"
[canNavigateBefore]="previousNodeId" [canNavigateBefore]="previousNodeId"

View File

@ -21,3 +21,7 @@
.adf-viewer-toolbar .mat-toolbar > button:last-child { .adf-viewer-toolbar .mat-toolbar > button:last-child {
display: none; display: none;
} }
.adf-viewer.right_side--hide .adf-viewer__sidebar__right {
width: 0;
}