add remove file on click while criaten oublication

This commit is contained in:
Eudes Inácio
2023-12-12 10:11:48 +01:00
parent e56192ffa4
commit 54fa1d41f0
6 changed files with 18 additions and 6 deletions
@@ -233,7 +233,7 @@ export class NewPublicationPage implements OnInit {
async startVideoRecording() {
try {
let options: CaptureImageOptions = { limit: 5 }
let options: CaptureImageOptions = { limit: 1 }
const data: any = await this.mediaCapture.captureVideo(options)
this.video = data[0];
console.log(data)
@@ -727,6 +727,9 @@ export class NewPublicationPage implements OnInit {
return parseInt(sizeInMB)
}
deleteFromSeletedContent(index){
this.seletedContent.splice(index,1)
}
}