Fix build

This commit is contained in:
Peter Maquiran
2021-08-23 17:17:07 +01:00
parent c9620bfff3
commit 8ded45b400
2 changed files with 23 additions and 2 deletions
@@ -4,7 +4,7 @@
<ion-icon class="font-35" (click)="goBack()" slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon> <ion-icon class="font-35" (click)="goBack()" slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
</div> --> </div> -->
<div class="div-title"> <div class="div-title">
<ion-label class="title">{{publicationTitle}}</ion-label> <ion-label class="title">{{ publicationTitle }}</ion-label>
</div> </div>
</div> </div>
</ion-header> </ion-header>
@@ -69,7 +69,7 @@ export class NewPublicationPage implements OnInit {
this.showLoader = true; this.showLoader = true;
//console.log(this.publicationId); //console.log(this.publicationId);
/* console.log(this.folderId); */ /* console.log(this.folderId); */
this.publications.GetPublicationById(this.publicationId).subscribe(res=>{ this.publications.GetPublicationById(this.publicationId).subscribe( res =>{
//console.log(res); //console.log(res);
/* this.publication = res; */ /* this.publication = res; */
this.publication = { this.publication = {
@@ -271,6 +271,27 @@ export class NewPublicationPage implements OnInit {
} }
} }
getPicture() {
const options: CameraOptions = {
quality: 90,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
targetWidth: 720,
targetHeight: 720,
}
this.camera.getPicture(options).then((imageData) => {
// imageData is either a base64 encoded string or a file URI
// If it's base64 (DATA_URL):
let base64Image = 'data:image/jpeg;base64,' + imageData;
this.capturedImage = imageData;
this.capturedImageTitle = new Date().getTime() + '.jpeg';
}, (err) => {
/* console.log(err); */
});
}
close(){ close(){
this.goBack(); this.goBack();