mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
mobile image preview bug solved
This commit is contained in:
@@ -18,6 +18,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"server": {
|
"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
@@ -1013,7 +1013,22 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.openFile(str, msg.attachments[0].name, msg.file.type);
|
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