This commit is contained in:
tiago.kayaya
2022-01-19 16:32:06 +01:00
parent 1ea1723214
commit b11a0c1b9d
3 changed files with 5 additions and 7 deletions
@@ -155,7 +155,7 @@ export class NewPublicationPage implements OnInit {
}); });
async laodPicture() { /* async laodPicture() {
const capturedImage = await Camera.getPhoto({ const capturedImage = await Camera.getPhoto({
resultType: CameraResultType.Uri, resultType: CameraResultType.Uri,
source: CameraSource.Photos, source: CameraSource.Photos,
@@ -174,9 +174,9 @@ export class NewPublicationPage implements OnInit {
this.capturedImage = await this.convertBlobToBase64(blob); this.capturedImage = await this.convertBlobToBase64(blob);
this.capturedImageTitle = new Date().getTime() + '.jpeg'; this.capturedImageTitle = new Date().getTime() + '.jpeg';
} } */
/* laodPicture() { laodPicture() {
const input = this.fileLoaderService.createInput({ const input = this.fileLoaderService.createInput({
accept: ['image/apng', 'image/jpeg', 'image/png'] accept: ['image/apng', 'image/jpeg', 'image/png']
}) })
@@ -191,7 +191,7 @@ export class NewPublicationPage implements OnInit {
console.log(this.capturedImage) console.log(this.capturedImage)
}; };
} */ }
@@ -40,7 +40,6 @@
</ion-refresher> </ion-refresher>
<div class="main-container px-20"> <div class="main-container px-20">
<ion-list> <ion-list>
<!-- [routerLink]="['/home/publications/view-publications/publication-detail', publication.publicationId]" -->
<div class="post-item d-md-block mb-10 cursor-pointer" <div class="post-item d-md-block mb-10 cursor-pointer"
*ngFor="let publication of publicationListStorage.documents[folderId]" *ngFor="let publication of publicationListStorage.documents[folderId]"
(click)="viewPublicationDetail(publication.DocumentId)"> (click)="viewPublicationDetail(publication.DocumentId)">
@@ -102,10 +102,9 @@ export class ViewPublicationsPage implements OnInit {
getPublications() { getPublications() {
this.showLoader = true; this.showLoader = true;
const folderId = this.folderId const folderId = this.folderId
this.publicationList = new Array();
this.publications.GetPublications(folderId).subscribe(res=> { this.publications.GetPublications(folderId).subscribe(res=> {
this.publicationList = new Array();
res.forEach(element => { res.forEach(element => {
let item: Publication = this.publicationPipe.itemList(element) let item: Publication = this.publicationPipe.itemList(element)
this.publicationList.push(item); this.publicationList.push(item);