mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
mobile image preview bug solved
This commit is contained in:
@@ -18,6 +18,6 @@
|
||||
}
|
||||
},
|
||||
"server": {
|
||||
"url": "http://192.168.1.6:8101"
|
||||
"url": "http://192.168.0.37:8101"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+694
-32278
File diff suppressed because it is too large
Load Diff
@@ -1012,11 +1012,26 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.downloadFileFromBrowser("file", str)
|
||||
}
|
||||
|
||||
} else {
|
||||
if (msg.file.type == "application/img") {
|
||||
const modal = await this.modalController.create({
|
||||
component: ViewMediaPage,
|
||||
cssClass: 'modal modal-desktop',
|
||||
componentProps: {
|
||||
image: msg.attachments[0].image_url,
|
||||
type: msg.file.type,
|
||||
username: msg.u.name,
|
||||
_updatedAt: msg._updatedAt
|
||||
}
|
||||
});
|
||||
modal.present();
|
||||
} else {
|
||||
this.openFile(str, msg.attachments[0].name, msg.file.type);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user