[Monitor Dashboard | Trunk]: Change toggle initial position to open menu.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@60240 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
fcb245cfdd
commit
758b838651
|
@ -16,7 +16,7 @@
|
||||||
'monitor.openaire.eu'" queryParamsHandling="preserve"
|
'monitor.openaire.eu'" queryParamsHandling="preserve"
|
||||||
></dashboard-sidebar>
|
></dashboard-sidebar>
|
||||||
<dashboard-sidebar *ngIf="hasAdminMenu" [items]="adminMenuItems" logoLabel="Admin"
|
<dashboard-sidebar *ngIf="hasAdminMenu" [items]="adminMenuItems" logoLabel="Admin"
|
||||||
headerDashboard="Administration Panel" [headerUrl]="'https://' + (properties.environment == 'beta' ? 'beta.' : '') +
|
[headerUrl]="'https://' + (properties.environment == 'beta' ? 'beta.' : '') +
|
||||||
'monitor.openaire.eu'" headerPosition="right"
|
'monitor.openaire.eu'" headerPosition="right"
|
||||||
[specialMenuItem]="specialSideBarMenuItem"
|
[specialMenuItem]="specialSideBarMenuItem"
|
||||||
></dashboard-sidebar>
|
></dashboard-sidebar>
|
||||||
|
|
|
@ -115,7 +115,6 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
this.route.queryParams.subscribe(params => {
|
this.route.queryParams.subscribe(params => {
|
||||||
this.isViewPublic = (params['view'] == 'public');
|
this.isViewPublic = (params['view'] == 'public');
|
||||||
});
|
});
|
||||||
this.layoutService.setOpen(false);
|
|
||||||
this.layoutService.setSmallScreen((this.innerWidth && this.innerWidth < 1219));
|
this.layoutService.setSmallScreen((this.innerWidth && this.innerWidth < 1219));
|
||||||
this.layoutService.setOpen(!(this.innerWidth && this.innerWidth < 1219));
|
this.layoutService.setOpen(!(this.innerWidth && this.innerWidth < 1219));
|
||||||
this.subscriptions.push(this.params.subscribe(params => {
|
this.subscriptions.push(this.params.subscribe(params => {
|
||||||
|
@ -211,11 +210,6 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
return this.layoutService.open;
|
return this.layoutService.open;
|
||||||
}
|
}
|
||||||
|
|
||||||
public toggleOpen(event: MouseEvent) {
|
|
||||||
event.preventDefault();
|
|
||||||
this.layoutService.setOpen(!this.open);
|
|
||||||
}
|
|
||||||
|
|
||||||
private setSideBar() {
|
private setSideBar() {
|
||||||
let items: MenuItem[] = [];
|
let items: MenuItem[] = [];
|
||||||
if (this.isPublicOrIsMember(this.stakeholder.visibility)) {
|
if (this.isPublicOrIsMember(this.stakeholder.visibility)) {
|
||||||
|
|
|
@ -156,10 +156,6 @@
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar_main_swipe:not(.sidebar_main_active):not(.sidebar_mini) #sidebar_switcher_toggle {
|
|
||||||
left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*Sidebar mini*/
|
/*Sidebar mini*/
|
||||||
.sidebar_main_swipe.sidebar_mini #page_content,
|
.sidebar_main_swipe.sidebar_mini #page_content,
|
||||||
.sidebar_main_swipe.sidebar_mini openaire-user > user > *,
|
.sidebar_main_swipe.sidebar_mini openaire-user > user > *,
|
||||||
|
|
Loading…
Reference in New Issue