This commit is contained in:
tiago.kayaya
2021-09-14 10:30:13 +01:00
parent 9994ba1a5d
commit 4ad15f822c
7 changed files with 74 additions and 33 deletions
@@ -398,32 +398,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
});
}
/* async actionSheet() {
const actionSheet = await this.actionSheetController.create({
cssClass: 'my-custom-class',
buttons: [{
text: 'Sair do grupo',
handler: () => {
console.log('Delete clicked');
}
}, {
text: 'Alterar nome do grupo1',
handler: () => {
console.log('Alterar nome do grupo');
this.openChangeGroupName()
}
}, {
text: 'Apagar o grupo',
handler: () => {
console.log('Play clicked');
}
},
]
});
await actionSheet.present();
}
*/
loadPicture() {
const input = this.fileLoaderService.createInput({
accept: ['image/apng', 'image/jpeg', 'image/png']
@@ -5,7 +5,7 @@
</button>
</div>
<div class="buttons">
<button hidden (click)="notImplemented()" full class="btn-ok" shape="round" >Tirar Fotografia</button>
<button (click)="takePicture()" full class="btn-ok" shape="round" >Tirar Fotografia</button>
<button hidden (click)="notImplemented()" class="btn-ok" shape="round" >Digitalizar Documento</button>
<button (click)="anexarFoto()" full class="btn-ok" shape="round" >Anexar Fotografia</button>
<button hidden (click)="getDoc()" class="btn-ok" shape="round" >Anexar Documento</button>
@@ -45,12 +45,21 @@ export class ChatOptionsPopoverPage implements OnInit {
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
}
anexarFoto(){
takePicture(){
if( window.innerWidth < 701){
this.popoverController.dismiss('picture');
this.popoverController.dismiss('takePicture');
}
else{
this.modalController.dismiss('picture');
this.modalController.dismiss('takePicture');
}
}
anexarFoto(){
if( window.innerWidth < 701){
this.popoverController.dismiss('loadPicture');
}
else{
this.modalController.dismiss('loadPicture');
}
}