mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
update create event from document
This commit is contained in:
@@ -113,6 +113,17 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
||||
) {
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.document = this.navParams.get('document')
|
||||
|
||||
if(Array.isArray(this.document)) {
|
||||
this.attachments = this.document
|
||||
} else {
|
||||
this.attachments = [this.document]
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.document = []
|
||||
|
||||
this.subject = this.navParams.get('subject')
|
||||
|
||||
this.postData = new Event();
|
||||
|
||||
@@ -7,6 +7,7 @@ import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { EventDetailsDocumentsOptionsPage } from 'src/app/shared/popover/event-details-documents-options/event-details-documents-options.page';
|
||||
import { DocumentSetUpMeetingPage } from '../document-set-up-meeting/document-set-up-meeting.page';
|
||||
import { AlertController, ModalController } from '@ionic/angular';
|
||||
import { SearchList } from 'src/app/models/search-document';
|
||||
|
||||
@Component({
|
||||
selector: 'app-view-document',
|
||||
@@ -22,6 +23,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
task: ExpedientTaskModalPageNavParamsTask;
|
||||
Document: any
|
||||
loader = true
|
||||
attachment: SearchList[] = [];
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -35,6 +37,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
this.docId = this.navParams.get('docId');
|
||||
this.Document = this.navParams.get('Document')
|
||||
this.task = this.navParams.get('task')
|
||||
this.attachment = this.navParams.get('attachment')
|
||||
|
||||
|
||||
if(!this.file.title) {
|
||||
@@ -92,7 +95,8 @@ export class ViewDocumentPage implements OnInit {
|
||||
componentProps: {
|
||||
fulltask: this.task,
|
||||
task: this.task,
|
||||
content: ""
|
||||
content: "",
|
||||
Document:this.Document
|
||||
}
|
||||
});
|
||||
await modal.present();
|
||||
@@ -115,7 +119,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
}
|
||||
|
||||
async openBookMeetingModal() {
|
||||
|
||||
console.log('this.Document', this.Document)
|
||||
let classs;
|
||||
if( window.innerWidth < 701) {
|
||||
classs = 'book-meeting-modal modal modal-desktop'
|
||||
|
||||
@@ -60,7 +60,7 @@ export class GroupContactsPage implements OnInit {
|
||||
ngOnInit() {
|
||||
// this.chatService.refreshtoken();
|
||||
this.loadUsers();
|
||||
this.getMembers();
|
||||
// this.getMembers();
|
||||
|
||||
|
||||
}
|
||||
@@ -205,8 +205,6 @@ export class GroupContactsPage implements OnInit {
|
||||
|
||||
})
|
||||
|
||||
this.users = users
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -66,22 +66,6 @@ export class ChatSystemService {
|
||||
) {
|
||||
|
||||
|
||||
const user = this.users
|
||||
|
||||
const alfa = {}
|
||||
|
||||
const sortedUserList = user.sort((a, b) => {
|
||||
if(a.name < b.name) {
|
||||
return -1;
|
||||
}
|
||||
if(a.name > b.name) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
})
|
||||
|
||||
console.log({sortedUserList})
|
||||
|
||||
this.RochetChatConnectorService.registerCallback({
|
||||
type: 'reConnect',
|
||||
funx: async () => {
|
||||
|
||||
@@ -7,6 +7,12 @@ import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { ChatSystemService } from 'src/app/services/chat/chat-system.service'
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
|
||||
|
||||
|
||||
class UserToSelect {
|
||||
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-contacts',
|
||||
templateUrl: './contacts.page.html',
|
||||
@@ -29,9 +35,10 @@ export class ContactsPage implements OnInit {
|
||||
@Output() backToChat:EventEmitter<any> = new EventEmitter<any>();
|
||||
@Output() closeAllDesktopComponents:EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
|
||||
userList = this.ChatSystemService.users
|
||||
|
||||
CoolList = []
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
private chatService: ChatService,
|
||||
@@ -57,6 +64,21 @@ export class ContactsPage implements OnInit {
|
||||
const username = e.name.toLowerCase()
|
||||
return username.includes(this.textSearch)
|
||||
})
|
||||
|
||||
|
||||
const alfa = {}
|
||||
|
||||
for (let user of this.userList) {
|
||||
|
||||
let firstCharacter = user.name.charAt(0);
|
||||
|
||||
if(!alfa[firstCharacter]) {
|
||||
alfa[firstCharacter] = [user]
|
||||
} else {
|
||||
alfa[firstCharacter].push(user)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user