|
|
@ -9,6 +9,7 @@ import {Group} from 'src/app/models/group';
|
|
|
|
import {Event} from 'src/app/models/event';
|
|
|
|
import {Event} from 'src/app/models/event';
|
|
|
|
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
|
|
|
|
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
|
|
|
|
import {DialogGroupFileUploadComponent} from './fileUpload/fileUpload.component';
|
|
|
|
import {DialogGroupFileUploadComponent} from './fileUpload/fileUpload.component';
|
|
|
|
|
|
|
|
import {Lightbox} from 'ngx-lightbox';
|
|
|
|
|
|
|
|
|
|
|
|
// DIALOG COMPONENT to create events
|
|
|
|
// DIALOG COMPONENT to create events
|
|
|
|
@Component({
|
|
|
|
@Component({
|
|
|
@ -85,6 +86,7 @@ export class GroupComponent implements OnInit {
|
|
|
|
private requestService: RequestService,
|
|
|
|
private requestService: RequestService,
|
|
|
|
private data: DatasharingService,
|
|
|
|
private data: DatasharingService,
|
|
|
|
private groupService: GroupService,
|
|
|
|
private groupService: GroupService,
|
|
|
|
|
|
|
|
private lightbox: Lightbox,
|
|
|
|
private datasharingService: DatasharingService) {
|
|
|
|
private datasharingService: DatasharingService) {
|
|
|
|
router.events.forEach((event) => {
|
|
|
|
router.events.forEach((event) => {
|
|
|
|
// check if url changes
|
|
|
|
// 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});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|