mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[no-issue] fix e2e uploader (#3840)
* fix e2e upload move viewer subbfolder * fix CS services e2e test * add log for error in upload delete * aysnc get node * new tentative * attempt 2 * attempt 3 * new demo shell test travis change for test * excluded file tslint fix * remove desktop only class * renable tests * decrease time notification * add process service multiselect demo test fix e2e * remove log * add custom toolbar example
This commit is contained in:
@@ -53,6 +53,20 @@
|
||||
<mat-radio-button value="end">End</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<section>
|
||||
<mat-slide-toggle id="adf-hide-sidenav" [color]="'primary'" (click)="changeSidenavVisibility()">
|
||||
Hide Sidebar
|
||||
</mat-slide-toggle>
|
||||
</section>
|
||||
|
||||
<div>
|
||||
<mat-radio-group [(ngModel)]="position" (change)="changePosition()">
|
||||
<mat-radio-button value="start">Start</mat-radio-button>
|
||||
<mat-radio-button value="end">End</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
</div>
|
||||
|
||||
</mat-card>
|
||||
</div>
|
||||
|
@@ -25,6 +25,7 @@ import { HeaderDataService } from './header-data.service';
|
||||
export class HeaderDataComponent {
|
||||
checkbox = true;
|
||||
position = 'start';
|
||||
hideSidenavToggle = false;
|
||||
|
||||
constructor(private headerService: HeaderDataService) {
|
||||
}
|
||||
@@ -65,4 +66,9 @@ export class HeaderDataComponent {
|
||||
changePosition() {
|
||||
this.headerService.changePosition(this.position);
|
||||
}
|
||||
|
||||
changeSidenavVisibility() {
|
||||
this.hideSidenavToggle = !this.hideSidenavToggle;
|
||||
this.headerService.changeSidenavVisibility(this.hideSidenavToggle);
|
||||
}
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@ export class HeaderDataService {
|
||||
@Output() redirectUrl: EventEmitter<string | any[]> = new EventEmitter();
|
||||
@Output() tooltip: EventEmitter<string> = new EventEmitter();
|
||||
@Output() position: EventEmitter<string> = new EventEmitter();
|
||||
@Output() hideSidenav: EventEmitter<string> = new EventEmitter();
|
||||
|
||||
hideMenuButton() {
|
||||
this.show = !this.show;
|
||||
@@ -59,4 +60,8 @@ export class HeaderDataService {
|
||||
changePosition(position) {
|
||||
this.position.emit(position);
|
||||
}
|
||||
|
||||
changeSidenavVisibility(hideSidenav) {
|
||||
this.hideSidenav.emit(hideSidenav);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user