|
|
|
@ -9,6 +9,7 @@ import {Group} from 'src/app/models/group';
|
|
|
|
|
import {Event} from 'src/app/models/event';
|
|
|
|
|
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
|
|
|
|
|
import {DialogGroupFileUploadComponent} from './fileUpload/fileUpload.component';
|
|
|
|
|
import {Lightbox} from 'ngx-lightbox';
|
|
|
|
|
|
|
|
|
|
// DIALOG COMPONENT to create events
|
|
|
|
|
@Component({
|
|
|
|
@ -85,6 +86,7 @@ export class GroupComponent implements OnInit {
|
|
|
|
|
private requestService: RequestService,
|
|
|
|
|
private data: DatasharingService,
|
|
|
|
|
private groupService: GroupService,
|
|
|
|
|
private lightbox: Lightbox,
|
|
|
|
|
private datasharingService: DatasharingService) {
|
|
|
|
|
router.events.forEach((event) => {
|
|
|
|
|
// check if url changes
|
|
|
|
@ -196,4 +198,11 @@ export class GroupComponent implements OnInit {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openPfpLightbox() {
|
|
|
|
|
this.lightbox.open([{
|
|
|
|
|
src: this.groupProfile.picture,
|
|
|
|
|
thumb: this.groupProfile.picture,
|
|
|
|
|
}], 0, {disableScrolling: true});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|