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({
resultType: CameraResultType.Uri,
source: CameraSource.Photos,
@@ -174,9 +174,9 @@ export class NewPublicationPage implements OnInit {
this.capturedImage = await this.convertBlobToBase64(blob);
this.capturedImageTitle = new Date().getTime() + '.jpeg';
}
} */
/* laodPicture() {
laodPicture() {
const input = this.fileLoaderService.createInput({
accept: ['image/apng', 'image/jpeg', 'image/png']
})
@@ -191,7 +191,7 @@ export class NewPublicationPage implements OnInit {
console.log(this.capturedImage)
};
} */
}
@@ -40,7 +40,6 @@
</ion-refresher>
<div class="main-container px-20">
<ion-list>
<!-- [routerLink]="['/home/publications/view-publications/publication-detail', publication.publicationId]" -->
<div class="post-item d-md-block mb-10 cursor-pointer"
*ngFor="let publication of publicationListStorage.documents[folderId]"
(click)="viewPublicationDetail(publication.DocumentId)">
@@ -102,10 +102,9 @@ export class ViewPublicationsPage implements OnInit {
getPublications() {
this.showLoader = true;
const folderId = this.folderId
this.publicationList = new Array();
this.publications.GetPublications(folderId).subscribe(res=> {
this.publicationList = new Array();
res.forEach(element => {
let item: Publication = this.publicationPipe.itemList(element)
this.publicationList.push(item);