mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'bugfix/chat-create-event' into develop_bitOut
This commit is contained in:
@@ -240,6 +240,7 @@
|
|||||||
</app-group-messages>
|
</app-group-messages>
|
||||||
|
|
||||||
<app-new-event
|
<app-new-event
|
||||||
|
*ngIf="showNewEvent"
|
||||||
[profile]=""
|
[profile]=""
|
||||||
[roomId]="groupRoomId"
|
[roomId]="groupRoomId"
|
||||||
[selectedSegment]=segment
|
[selectedSegment]=segment
|
||||||
@@ -250,6 +251,8 @@
|
|||||||
(onAddEvent)="closeNewEventComponent()"
|
(onAddEvent)="closeNewEventComponent()"
|
||||||
(openAttendeesComponent)="openAttendeesComponent($event)"
|
(openAttendeesComponent)="openAttendeesComponent($event)"
|
||||||
(cloneAllmobileComponent)="closeNewEventComponent()"
|
(cloneAllmobileComponent)="closeNewEventComponent()"
|
||||||
|
(setIntervenient)="setIntervenient($event)"
|
||||||
|
(setIntervenientCC)="setIntervenientCC($event)"
|
||||||
[style.display]="showNewEvent ? 'flex' : 'none'"
|
[style.display]="showNewEvent ? 'flex' : 'none'"
|
||||||
class=" height-100 flex-column">
|
class=" height-100 flex-column">
|
||||||
</app-new-event>
|
</app-new-event>
|
||||||
|
|||||||
@@ -108,10 +108,11 @@
|
|||||||
<div (click)="openPreview(msg)" class="file-details add-ellipsis cursor-pointer" *ngIf="msg.file">
|
<div (click)="openPreview(msg)" class="file-details add-ellipsis cursor-pointer" *ngIf="msg.file">
|
||||||
<div *ngIf="!msg.attachments[0].image_url">
|
<div *ngIf="!msg.attachments[0].image_url">
|
||||||
<ion-item class="add-attachment-bg-color" shape="round" lines="none" type="button">
|
<ion-item class="add-attachment-bg-color" shape="round" lines="none" type="button">
|
||||||
<ion-icon name="document" class="file-icon"></ion-icon>
|
<ion-icon *ngIf="msg.attachments[0].type != 'webtrix'" name="document" class="file-icon"></ion-icon>
|
||||||
|
<ion-icon *ngIf="msg.attachments[0].type == 'webtrix'" src="assets/icon/webtrix.svg" class="file-icon"></ion-icon>
|
||||||
<ion-label>{{file.title}}</ion-label>
|
<ion-label>{{file.title}}</ion-label>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon-download" src="assets/icon/theme/default/icons-download.svg" slot="end"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' && msg.attachments[0].type != 'webtrix' " class="icon-download" src="assets/icon/theme/default/icons-download.svg" slot="end"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon-download" src="assets/icon/theme/gov/icons-download.svg" slot="end"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' && msg.attachments[0].type != 'webtrix' " class="icon-download" src="assets/icon/theme/gov/icons-download.svg" slot="end"></ion-icon>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="msg.attachments[0].image_url">
|
<div *ngIf="msg.attachments[0].image_url">
|
||||||
|
|||||||
@@ -107,10 +107,11 @@
|
|||||||
|
|
||||||
<div *ngIf="!msg.attachments[0].image_url">
|
<div *ngIf="!msg.attachments[0].image_url">
|
||||||
<ion-item class="add-attachment-bg-color" shape="round" lines="none" type="button">
|
<ion-item class="add-attachment-bg-color" shape="round" lines="none" type="button">
|
||||||
<ion-icon name="document" class="file-icon"></ion-icon>
|
<ion-icon *ngIf="msg.attachments[0].type != 'webtrix'" name="document" class="file-icon"></ion-icon>
|
||||||
|
<ion-icon *ngIf="msg.attachments[0].type == 'webtrix'" src="assets/icon/webtrix.svg" class="file-icon"></ion-icon>
|
||||||
<ion-label>{{file.title}}</ion-label>
|
<ion-label>{{file.title}}</ion-label>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon-download" src="assets/icon/theme/default/icons-download.svg" slot="end"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' && msg.attachments[0].type != 'webtrix' " class="icon-download" src="assets/icon/theme/default/icons-download.svg" slot="end"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon-download" src="assets/icon/theme/gov/icons-download.svg" slot="end"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' && msg.attachments[0].type != 'webtrix' " class="icon-download" src="assets/icon/theme/gov/icons-download.svg" slot="end"></ion-icon>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -472,10 +472,12 @@ export class NewEventPage implements OnInit {
|
|||||||
else if(this.loggeduser.Profile == 'PR') {
|
else if(this.loggeduser.Profile == 'PR') {
|
||||||
|
|
||||||
const CalendarId = this.selectedCalendarId()
|
const CalendarId = this.selectedCalendarId()
|
||||||
|
let loader = this.toastService.loading();
|
||||||
|
|
||||||
this.eventService.postEventGeneric(this.postEvent, this.postEvent.CalendarName, CalendarId).subscribe(
|
this.eventService.postEventGeneric(this.postEvent, this.postEvent.CalendarName, CalendarId).subscribe(
|
||||||
(id) => {
|
(id) => {
|
||||||
|
|
||||||
|
loader.remove()
|
||||||
|
|
||||||
const eventId: any = id;
|
const eventId: any = id;
|
||||||
|
|
||||||
@@ -503,7 +505,21 @@ export class NewEventPage implements OnInit {
|
|||||||
if(DocumentToSave.length == 0){
|
if(DocumentToSave.length == 0){
|
||||||
this.afterSave();
|
this.afterSave();
|
||||||
}
|
}
|
||||||
|
this.toastService._successMessage('Evento criado');
|
||||||
|
let data = {
|
||||||
|
"subject": this.postEvent.Subject,
|
||||||
|
"start": this.postEvent.StartDate,
|
||||||
|
"end": this.postEvent.EndDate,
|
||||||
|
"venue": this.postEvent.Location,
|
||||||
|
"id": id,
|
||||||
|
}
|
||||||
|
this.chatMethodService.sendMessage(this.roomId,data);
|
||||||
|
|
||||||
this.toastService._successMessage('Evento criado')
|
this.toastService._successMessage('Evento criado')
|
||||||
|
},()=>{
|
||||||
|
loader.remove()
|
||||||
|
this.showLoader = false
|
||||||
|
this.toastService._badRequest('Evento não criado')
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@@ -511,9 +527,11 @@ export class NewEventPage implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
const CalendarId = this.selectedCalendarId()
|
const CalendarId = this.selectedCalendarId()
|
||||||
|
let loader = this.toastService.loading();
|
||||||
|
|
||||||
this.eventService.postEventGeneric(this.postEvent, this.postEvent.CalendarName, CalendarId).subscribe(
|
this.eventService.postEventGeneric(this.postEvent, this.postEvent.CalendarName, CalendarId).subscribe(
|
||||||
(id) => {
|
(id) => {
|
||||||
|
loader.remove();
|
||||||
|
|
||||||
const eventId: any = id;
|
const eventId: any = id;
|
||||||
|
|
||||||
@@ -541,7 +559,21 @@ export class NewEventPage implements OnInit {
|
|||||||
if(DocumentToSave.length == 0){
|
if(DocumentToSave.length == 0){
|
||||||
this.afterSave();
|
this.afterSave();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.toastService._successMessage('Evento criado');
|
||||||
|
let data = {
|
||||||
|
"subject": this.postEvent.Subject,
|
||||||
|
"start": this.postEvent.StartDate,
|
||||||
|
"end": this.postEvent.EndDate,
|
||||||
|
"venue": this.postEvent.Location,
|
||||||
|
"id": id,
|
||||||
|
}
|
||||||
|
this.chatMethodService.sendMessage(this.roomId,data);
|
||||||
this.toastService._successMessage('Evento criado')
|
this.toastService._successMessage('Evento criado')
|
||||||
|
},()=>{
|
||||||
|
loader.remove()
|
||||||
|
this.showLoader = false
|
||||||
|
this.toastService._badRequest('Evento não criado')
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -627,7 +659,7 @@ export class NewEventPage implements OnInit {
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,10 +112,11 @@
|
|||||||
<div (click)="openPreview(msg)" class="file-details add-ellipsis cursor-pointer" *ngIf="msg.file">
|
<div (click)="openPreview(msg)" class="file-details add-ellipsis cursor-pointer" *ngIf="msg.file">
|
||||||
<div *ngIf="!msg.attachments[0].image_url">
|
<div *ngIf="!msg.attachments[0].image_url">
|
||||||
<ion-item class="add-attachment-bg-color" shape="round" lines="none" type="button">
|
<ion-item class="add-attachment-bg-color" shape="round" lines="none" type="button">
|
||||||
<ion-icon name="document" class="file-icon"></ion-icon>
|
<ion-icon *ngIf="msg.attachments[0].type != 'webtrix'" name="document" class="file-icon"></ion-icon>
|
||||||
|
<ion-icon *ngIf="msg.attachments[0].type == 'webtrix'" src="assets/icon/webtrix.svg" class="file-icon"></ion-icon>
|
||||||
<ion-label>{{file.title}}</ion-label>
|
<ion-label>{{file.title}}</ion-label>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon-download" src="assets/icon/theme/default/icons-download.svg" slot="end"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' && msg.attachments[0].type != 'webtrix' " class="icon-download" src="assets/icon/theme/default/icons-download.svg" slot="end"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon-download" src="assets/icon/theme/gov/icons-download.svg" slot="end"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' && msg.attachments[0].type != 'webtrix' " class="icon-download" src="assets/icon/theme/gov/icons-download.svg" slot="end"></ion-icon>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="msg.attachments[0].image_url">
|
<div *ngIf="msg.attachments[0].image_url">
|
||||||
@@ -230,10 +231,8 @@
|
|||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
<ion-footer>
|
<ion-footer>
|
||||||
<!-- <div class="typing" *ngIf="wsChatMethodsService.getGroupRoom(roomId).otherUserType == true" >A escrever...</div> -->
|
|
||||||
|
|
||||||
<div class="typing" *ngIf="wsChatMethodsService.getGroupRoom(roomId).otherUserType == true">
|
<div class="typing" *ngIf="wsChatMethodsService.getGroupRoom(roomId).otherUserType == true">
|
||||||
{{ wsChatMethodsService.getGroupRoom(roomId).otherUserType }}
|
|
||||||
|
|
||||||
<ngx-letters-avatar *ngIf="showAvatar"
|
<ngx-letters-avatar *ngIf="showAvatar"
|
||||||
[avatarName]= "wsChatMethodsService.getGroupRoom(roomId).name"
|
[avatarName]= "wsChatMethodsService.getGroupRoom(roomId).name"
|
||||||
|
|||||||
@@ -220,14 +220,10 @@
|
|||||||
<div class="width-100 pl-20 pr-20">
|
<div class="width-100 pl-20 pr-20">
|
||||||
<span *ngIf="!lastAudioRecorded">{{durationDisplay}}</span>
|
<span *ngIf="!lastAudioRecorded">{{durationDisplay}}</span>
|
||||||
<div class=" audioDiv d-flex width-100 mt-10 mb-10" *ngIf="lastAudioRecorded">
|
<div class=" audioDiv d-flex width-100 mt-10 mb-10" *ngIf="lastAudioRecorded">
|
||||||
<!-- <button class="audioButtonPlay" fill="clear" (click)="start(audioRecorded)" *ngIf="!isPlaying"> <ion-icon slot="icon-only" name="play"></ion-icon> </button>
|
|
||||||
<button class="audioButtonPlay" fill="clear" (click)="togglePlayer(true)" *ngIf="isPlaying"> <ion-icon slot="icon-only" name="pause"></ion-icon> </button> -->
|
|
||||||
<div (click)="start(audioRecorded)" *ngIf="!isPlaying" > <ion-icon slot="icon-only" name="play"></ion-icon> </div>
|
<div (click)="start(audioRecorded)" *ngIf="!isPlaying" > <ion-icon slot="icon-only" name="play"></ion-icon> </div>
|
||||||
<div (click)="togglePlayer(isPlaying)" *ngIf="isPlaying"> <ion-icon slot="icon-only" name="pause"></ion-icon> </div>
|
<div (click)="togglePlayer(isPlaying)" *ngIf="isPlaying"> <ion-icon slot="icon-only" name="pause"></ion-icon> </div>
|
||||||
<!-- <label>{{audioDuration}}</label> -->
|
|
||||||
<ion-range #range [(ngModel)]="audioProgress" max="100" (mouseup)="seek()"></ion-range>
|
<ion-range #range [(ngModel)]="audioProgress" max="100" (mouseup)="seek()"></ion-range>
|
||||||
</div>
|
</div>
|
||||||
<!-- <audio [src]="audioRecorded" class="d-flex width-100 mt-10 mb-10" *ngIf="lastAudioRecorded" controls controlsList="nodownload noplaybackrate"></audio> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container width-100 d-flex">
|
<div class="container width-100 d-flex">
|
||||||
|
|||||||
@@ -1196,6 +1196,7 @@ ngx-mat-datetime-content{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
background: none;
|
background: none;
|
||||||
padding: 10px 5px 10px 5px;
|
padding: 10px 5px 10px 5px;
|
||||||
|
color: black;
|
||||||
}
|
}
|
||||||
.menuButton:hover{
|
.menuButton:hover{
|
||||||
background: #e6f6ff75;
|
background: #e6f6ff75;
|
||||||
|
|||||||
Reference in New Issue
Block a user