mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -97,7 +97,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
private AttachmentsService: AttachmentsService,
|
private AttachmentsService: AttachmentsService,
|
||||||
private storage: Storage,
|
private storage: Storage,
|
||||||
private processesService: ProcessesService,
|
private processesService: ProcessesService,
|
||||||
|
|
||||||
private CameraService: CameraService,
|
private CameraService: CameraService,
|
||||||
) {
|
) {
|
||||||
this.loggedUserChat = authService.ValidatedUserChat['data'];
|
this.loggedUserChat = authService.ValidatedUserChat['data'];
|
||||||
@@ -112,7 +112,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
this.wsChatMethodsService.getGroupRoom(this.roomId).loadHistory();
|
this.wsChatMethodsService.getGroupRoom(this.roomId).loadHistory();
|
||||||
this.wsChatMethodsService.getGroupRoom(this.roomId).scrollDown = this.scrollToBottomClicked;
|
this.wsChatMethodsService.getGroupRoom(this.roomId).scrollDown = this.scrollToBottomClicked;
|
||||||
this.wsChatMethodsService.openRoom(this.roomId)
|
this.wsChatMethodsService.openRoom(this.roomId)
|
||||||
|
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.scrollToBottomClicked()
|
this.scrollToBottomClicked()
|
||||||
}, 50)
|
}, 50)
|
||||||
@@ -199,7 +199,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
|
|
||||||
|
|
||||||
changeInput() {
|
changeInput() {
|
||||||
this.wsChatMethodsService.getDmRoom(this.roomId).typing()
|
this.wsChatMethodsService.getGroupRoom(this.roomId).typing()
|
||||||
}
|
}
|
||||||
|
|
||||||
async goToEvent(eventId: any) {
|
async goToEvent(eventId: any) {
|
||||||
@@ -437,11 +437,11 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async takePicture() {
|
async takePicture() {
|
||||||
const roomId = this.roomId
|
const roomId = this.roomId
|
||||||
|
|
||||||
const image = await this.CameraService.takePicture();
|
const image = await this.CameraService.takePicture();
|
||||||
await this.fileService.saveImage(image)
|
await this.fileService.saveImage(image)
|
||||||
const lastphoto: any = await this.fileService.loadFiles();
|
const lastphoto: any = await this.fileService.loadFiles();
|
||||||
@@ -451,7 +451,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("blobFile", blob);
|
formData.append("blobFile", blob);
|
||||||
|
|
||||||
this.wsChatMethodsService.getDmRoom(roomId).send({
|
this.wsChatMethodsService.getGroupRoom(roomId).send({
|
||||||
file: {
|
file: {
|
||||||
"type": "application/img",
|
"type": "application/img",
|
||||||
"guid": ''
|
"guid": ''
|
||||||
@@ -466,11 +466,11 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async addImage() {
|
async addImage() {
|
||||||
this.addFileToChat(['image/apng', 'image/jpeg', 'image/png'])
|
this.addFileToChat(['image/apng', 'image/jpeg', 'image/png'])
|
||||||
}
|
}
|
||||||
|
|
||||||
async addFile() {
|
async addFile() {
|
||||||
this.addFileToChat(['.doc', '.docx', '.pdf'])
|
this.addFileToChat(['.doc', '.docx', '.pdf'])
|
||||||
}
|
}
|
||||||
@@ -492,7 +492,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
if(data.selected) {
|
if(data.selected) {
|
||||||
const loader = this.toastService.loading();
|
const loader = this.toastService.loading();
|
||||||
|
|
||||||
this.wsChatMethodsService.getDmRoom(this.roomId).send({
|
this.wsChatMethodsService.getGroupRoom(this.roomId).send({
|
||||||
file:{
|
file:{
|
||||||
"name": res.data.selected.Assunto,
|
"name": res.data.selected.Assunto,
|
||||||
"type": "application/webtrix",
|
"type": "application/webtrix",
|
||||||
@@ -528,8 +528,8 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("blobFile", file);
|
formData.append("blobFile", file);
|
||||||
|
|
||||||
this.wsChatMethodsService.getDmRoom(this.roomId).send({
|
this.wsChatMethodsService.getGroupRoom(this.roomId).send({
|
||||||
file: {
|
file: {
|
||||||
"type": "application/img",
|
"type": "application/img",
|
||||||
"guid": ''
|
"guid": ''
|
||||||
@@ -544,7 +544,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async openChatOptions(ev?: any) {
|
async openChatOptions(ev?: any) {
|
||||||
console.log(this.members);
|
console.log(this.members);
|
||||||
const roomId = this.roomId;
|
const roomId = this.roomId;
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
|
|
||||||
hideRefreshButton() {
|
hideRefreshButton() {
|
||||||
window.onresize = (event) => {
|
window.onresize = (event) => {
|
||||||
if (window.innerWidth < 801) {
|
if (window.innerWidth < 701) {
|
||||||
this.hideRefreshBtn = false;
|
this.hideRefreshBtn = false;
|
||||||
this.showSlidingOptions = false;
|
this.showSlidingOptions = false;
|
||||||
}
|
}
|
||||||
@@ -112,7 +112,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
this.showSlidingOptions = true;
|
this.showSlidingOptions = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (window.innerWidth < 801) {
|
if (window.innerWidth < 701) {
|
||||||
this.hideRefreshBtn = false;
|
this.hideRefreshBtn = false;
|
||||||
this.showSlidingOptions = false;
|
this.showSlidingOptions = false;
|
||||||
}
|
}
|
||||||
@@ -375,7 +375,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
this.closeDesktopComponent();
|
this.closeDesktopComponent();
|
||||||
|
|
||||||
// OpenModal
|
// OpenModal
|
||||||
if (window.innerWidth <= 800) {
|
if (window.innerWidth < 701) {
|
||||||
/* let item = this.publicationFolderList; */
|
/* let item = this.publicationFolderList; */
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: ViewPublicationsPage,
|
component: ViewPublicationsPage,
|
||||||
|
|||||||
@@ -555,7 +555,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("blobFile", blob);
|
formData.append("blobFile", blob);
|
||||||
|
|
||||||
this.wsChatMethodsService.getDmRoom(roomId).send({
|
this.wsChatMethodsService.getGroupRoom(roomId).send({
|
||||||
file: {
|
file: {
|
||||||
"type": "application/img",
|
"type": "application/img",
|
||||||
"guid": ''
|
"guid": ''
|
||||||
@@ -638,7 +638,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("blobFile", file);
|
formData.append("blobFile", file);
|
||||||
|
|
||||||
this.wsChatMethodsService.getDmRoom(roomId).send({
|
this.wsChatMethodsService.getGroupRoom(roomId).send({
|
||||||
file: {
|
file: {
|
||||||
"type": "application/img",
|
"type": "application/img",
|
||||||
"guid": ''
|
"guid": ''
|
||||||
|
|||||||
Reference in New Issue
Block a user