mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Merge branch 'feature/chat' into developer
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<button (click)="notImplemented()" full class="btn-ok" shape="round" >Tirar Fotografia</button>
|
||||
<button (click)="notImplemented()" class="btn-ok" shape="round" >Digitalizar Documento</button>
|
||||
<button (click)="notImplemented()" full class="btn-ok" shape="round" >Anexar Fotografia</button>
|
||||
<button (click)="notImplemented()" class="btn-ok" shape="round" >Anexar Documento</button>
|
||||
<button (click)="getDoc()" class="btn-ok" shape="round" >Anexar Documento</button>
|
||||
<div class="solid"></div>
|
||||
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController, PopoverController } from '@ionic/angular';
|
||||
import { SearchDocument } from 'src/app/models/search-document';
|
||||
import { SearchPage } from 'src/app/pages/search/search.page';
|
||||
import { AlertService } from 'src/app/services/alert.service';
|
||||
|
||||
@Component({
|
||||
@@ -9,6 +11,8 @@ import { AlertService } from 'src/app/services/alert.service';
|
||||
})
|
||||
export class ChatOptionsPopoverPage implements OnInit {
|
||||
|
||||
documents:SearchDocument[] = [];
|
||||
|
||||
constructor(
|
||||
private popoverController: PopoverController,
|
||||
private modalController: ModalController,
|
||||
@@ -31,4 +35,28 @@ export class ChatOptionsPopoverPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
attachDocument(){
|
||||
console.log('Anexar Documento');
|
||||
|
||||
}
|
||||
|
||||
async getDoc(){
|
||||
const modal = await this.modalController.create({
|
||||
component: SearchPage,
|
||||
cssClass: 'group-messages modal-desktop search-modal search-modal-to-desktop',
|
||||
componentProps: {
|
||||
type: 'AccoesPresidenciais & ArquivoDespachoElect'
|
||||
}
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then((res)=>{
|
||||
if(res){
|
||||
const data = res.data;
|
||||
this.documents.push(data.selected);
|
||||
console.log(res.data);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
justify-content: space-around;
|
||||
}
|
||||
.solid {
|
||||
display: none;
|
||||
display: block;
|
||||
width: 90%;
|
||||
border-top: 1px solid #bbb;
|
||||
margin: 0 auto !important;
|
||||
margin: 10px auto !important;
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.arrow-right{
|
||||
@@ -37,12 +37,10 @@
|
||||
}
|
||||
.btn-ok{
|
||||
width: 100% !important;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
}
|
||||
.btn-delete{
|
||||
width: 100% !important;
|
||||
margin-bottom: 10px !important;
|
||||
margin-top: 10px !important;
|
||||
}
|
||||
.solid{
|
||||
display: block;
|
||||
|
||||
@@ -23,14 +23,15 @@ export class ChatPopoverPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.roomId);
|
||||
|
||||
}
|
||||
|
||||
close(){
|
||||
if( window.innerWidth <= 1024){
|
||||
//this.popoverController.dismiss();
|
||||
this.popoverController.dismiss('cancel');
|
||||
this.modalController.dismiss('cancel');
|
||||
}
|
||||
else{
|
||||
this.popoverController.dismiss('cancel');
|
||||
this.modalController.dismiss('cancel');
|
||||
}
|
||||
}
|
||||
@@ -56,8 +57,10 @@ export class ChatPopoverPage implements OnInit {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.popoverController.dismiss('leave');
|
||||
this.modalController.dismiss('leave');
|
||||
}
|
||||
|
||||
//Delete
|
||||
deleteGroup(){
|
||||
let body = { "roomId":this.roomId, }
|
||||
@@ -75,6 +78,7 @@ export class ChatPopoverPage implements OnInit {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.popoverController.dismiss('delete');
|
||||
this.modalController.dismiss('delete');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user