Raise add event fab button when audio player is open
parent
3578501586
commit
0106eb87f9
|
|
@ -31,6 +31,11 @@ li:last-child{
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#audio-player-filler{
|
||||||
|
height: 60px;
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
@media(max-width:800px){
|
@media(max-width:800px){
|
||||||
.mobile-search{
|
.mobile-search{
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
</button>
|
</button>
|
||||||
<div class="fab-buttons" >
|
<div class="fab-buttons" >
|
||||||
<button md-fab *ngIf="loggedIn" (click)="addEvent()"><i ofbicon>add</i></button>
|
<button md-fab *ngIf="loggedIn" (click)="addEvent()"><i ofbicon>add</i></button>
|
||||||
|
<div id="audio-player-filler" *ngIf="audioPlayerOpen"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div sideBar class="side-bar">
|
<div sideBar class="side-bar">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { MdDialog, MdDialogConfig, MdSnackBar } from '@angular/material';
|
import { MdDialog, MdDialogConfig, MdSnackBar } from '@angular/material';
|
||||||
import { ActivatedRoute, Params } from '@angular/router';
|
import { ActivatedRoute, Params } from '@angular/router';
|
||||||
import { EventService } from './../../services/event.service';
|
import { EventService } from './../../services/event.service';
|
||||||
|
import { AudioPlayerService } from './../../services/audio-player.service';
|
||||||
import { AddEventPopupComponent } from './../popups/add-event-popup/add-event-popup.component';
|
import { AddEventPopupComponent } from './../popups/add-event-popup/add-event-popup.component';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
|
@ -20,14 +21,17 @@ export class EventsPageComponent implements OnInit {
|
||||||
public events: Event[];
|
public events: Event[];
|
||||||
public loggedIn: boolean = false;
|
public loggedIn: boolean = false;
|
||||||
public showAllButtonVisible: boolean = false;
|
public showAllButtonVisible: boolean = false;
|
||||||
|
public audioPlayerOpen: boolean = false;
|
||||||
|
|
||||||
constructor(private loginService: LoginService,
|
constructor(private loginService: LoginService,
|
||||||
private eventService: EventService,
|
private eventService: EventService,
|
||||||
private dialog: MdDialog,
|
private dialog: MdDialog,
|
||||||
private snackbar: MdSnackBar,
|
private snackbar: MdSnackBar,
|
||||||
private activatedRoute: ActivatedRoute) {
|
private activatedRoute: ActivatedRoute,
|
||||||
|
private audioPlayerService: AudioPlayerService) {
|
||||||
this.loginService.isLoggedIn(true).subscribe(is => { this.loggedIn = is; });
|
this.loginService.isLoggedIn(true).subscribe(is => { this.loggedIn = is; });
|
||||||
this.loginService.onLogin().subscribe(is => { this.loggedIn = is.isLoggedIn; });
|
this.loginService.onLogin().subscribe(is => { this.loggedIn = is.isLoggedIn; });
|
||||||
|
this.audioPlayerService.onAudioPlayerOpenClose.subscribe(is => this.audioPlayerOpen = is);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue