mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix upload
This commit is contained in:
@@ -116,7 +116,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
if (event instanceof NavigationEnd && event.url == pathname) {
|
if (event instanceof NavigationEnd && event.url == pathname) {
|
||||||
console.log('=================', this.publicationFolderService.gotoAction)
|
console.log('=================', this.publicationFolderService.gotoAction)
|
||||||
this.getActions();
|
this.getActions();
|
||||||
this.checkQueryParameter()
|
// this.checkQueryParameter()
|
||||||
}
|
}
|
||||||
this.intent = window['sharedContent']
|
this.intent = window['sharedContent']
|
||||||
});
|
});
|
||||||
@@ -382,7 +382,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
|
|
||||||
modal.onDidDismiss().then(() => {
|
modal.onDidDismiss().then(() => {
|
||||||
this.intent = window["sharedContent"]
|
this.intent = window["sharedContent"]
|
||||||
this.doRefresh(event);
|
// this.doRefresh(event);
|
||||||
this.checkQueryParameter();
|
this.checkQueryParameter();
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
|
|||||||
@@ -170,9 +170,8 @@ export class PublicationFromMvService {
|
|||||||
|
|
||||||
if(upload) {
|
if(upload) {
|
||||||
this.form.Files = this.form.Files.map((e:PublicationAttachmentEntity) => {
|
this.form.Files = this.form.Files.map((e:PublicationAttachmentEntity) => {
|
||||||
console.log({e})
|
|
||||||
if(e.FileType == 'video' && e.toUpload) {
|
if(e.FileType == 'video' && e.toUpload) {
|
||||||
e.OriginalFileName = e?.chucksManager?.path?.replace(".mp4", "") || e.OriginalFileName
|
e.OriginalFileName = e.chucksManager?.path?.replace(".mp4", "") || e.OriginalFileName
|
||||||
e.FileExtension = e.FileExtension || "mp4"
|
e.FileExtension = e.FileExtension || "mp4"
|
||||||
e.Base64 = ''
|
e.Base64 = ''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user