mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix build
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user