mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
save
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<button (click)="notImplemented()" full class="btn-ok" shape="round" >Tirar Fotografia</button>
|
<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()" class="btn-ok" shape="round" >Digitalizar Documento</button>
|
||||||
<button (click)="notImplemented()" full class="btn-ok" shape="round" >Anexar Fotografia</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>
|
<div class="solid"></div>
|
||||||
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ModalController, PopoverController } from '@ionic/angular';
|
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';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -9,6 +11,8 @@ import { AlertService } from 'src/app/services/alert.service';
|
|||||||
})
|
})
|
||||||
export class ChatOptionsPopoverPage implements OnInit {
|
export class ChatOptionsPopoverPage implements OnInit {
|
||||||
|
|
||||||
|
documents:SearchDocument[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private popoverController: PopoverController,
|
private popoverController: PopoverController,
|
||||||
private modalController: ModalController,
|
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user