mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
https://wetransfer.com/downloads/48a9320a9b41c4b3bef97cfc0c42941620230803122443/778a91?utm_campaign=TRN_TDL_05&utm_source=sendgrid&utm_medium=email&trk=TRN_TDL_05
|
||||||
@@ -196,7 +196,7 @@ export class CreateProcessPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cancelTask() {
|
cancelTask() {
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss({action:'cancel'});
|
||||||
}
|
}
|
||||||
|
|
||||||
runValidation() {
|
runValidation() {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export interface ChatMessageInterface {
|
|||||||
msg: string;
|
msg: string;
|
||||||
file?: any;
|
file?: any;
|
||||||
ts: number;
|
ts: number;
|
||||||
|
t?: string;
|
||||||
u: {
|
u: {
|
||||||
_id: string;
|
_id: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ export class NewEventPage implements OnInit {
|
|||||||
CalendarName: new FormControl(this.postEvent.CalendarName, [
|
CalendarName: new FormControl(this.postEvent.CalendarName, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Date: new FormControl(new Date(this.postEvent.StartDate).getTime() <= new Date(this.postEvent.EndDate).getTime()? 'ok': null,[
|
Date: new FormControl(new Date(this.postEvent.StartDate).getTime() < new Date(this.postEvent.EndDate).getTime()? 'ok': null,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Categories: new FormControl(this.postEvent.Category, [
|
Categories: new FormControl(this.postEvent.Category, [
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ export class ChatPage implements OnInit {
|
|||||||
this.selectContact();
|
this.selectContact();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
this.showEmptyComponent = false;
|
||||||
this.showContacts = true;
|
this.showContacts = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -301,6 +301,7 @@ export class ChatPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.closeAllDesktopComponents();
|
this.closeAllDesktopComponents();
|
||||||
|
this.showEmptyComponent = false;
|
||||||
this.showNewGroup = true;
|
this.showNewGroup = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ ion-content{
|
|||||||
transform: translate3d(0, 1px, 0);
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|
||||||
.title-content{
|
.title-content{
|
||||||
width: 360px;
|
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="middle-container" *ngIf="!showMessageOptions">
|
<div class="middle-container" *ngIf="!showMessageOptions">
|
||||||
<div class="middle add-ellipsis">
|
<div class="middle add-ellipsis">
|
||||||
<ion-label class="title">{{groupNameFormart}}</ion-label>
|
<ion-label class="title">{{ ChatSystemService.getGroupRoom(roomId).name }}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="middle-container-options" *ngIf="showMessageOptions">
|
<div class="middle-container-options" *ngIf="showMessageOptions">
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-bottom-contacts">
|
<div class="header-bottom-contacts" *ngIf="ChatSystemService.getGroupRoom(roomId)">
|
||||||
<ion-label class="contacts-list" *ngFor="let member of members" >
|
<ion-label class="contacts-list" *ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe" >
|
||||||
{{member.name}},
|
{{member.name}},
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -523,7 +523,8 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then(res => {
|
modal.onDidDismiss().then(res => {
|
||||||
if (res.data == 'leave') {
|
if (res.data == 'leave') {
|
||||||
|
this.close()
|
||||||
|
this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
//this.ChatSystemService.subscribeToRoomUpdate(this.roomId, this.room);
|
//this.ChatSystemService.subscribeToRoomUpdate(this.roomId, this.room);
|
||||||
}
|
}
|
||||||
else if (res.data == 'cancel') {
|
else if (res.data == 'cancel') {
|
||||||
@@ -534,6 +535,9 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
} else if (res.data == 'addUser') {
|
} else if (res.data == 'addUser') {
|
||||||
|
|
||||||
this.addContacts();
|
this.addContacts();
|
||||||
|
} else if (res.data == 'delete') {
|
||||||
|
this.close()
|
||||||
|
this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
||||||
(click)="goToEvent(event)"
|
(click)="goToEvent(event)"
|
||||||
>
|
>
|
||||||
<div class="d-flex event-box-content content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
|
<div class="d-flex event-box-content content-{{agendaColor}}-{{event.CalendarName}}">
|
||||||
|
|
||||||
<div class="schedule-time">
|
<div class="schedule-time">
|
||||||
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
||||||
@@ -229,12 +229,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="content overflow-y-auto flex-grow-1 height-100">
|
<div class="content overflow-y-auto flex-grow-1 height-100">
|
||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
||||||
(click)="goToEvent(event)"
|
(click)="goToEvent(event)"
|
||||||
>
|
>
|
||||||
<div class="d-flex content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
|
|
||||||
|
<div class="d-flex content-{{agendaColor}}-{{event.CalendarName}}">
|
||||||
|
|
||||||
<div class="schedule-time">
|
<div class="schedule-time">
|
||||||
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ export class EventsPage implements OnInit {
|
|||||||
showCorrespondenciasLoader = false
|
showCorrespondenciasLoader = false
|
||||||
loadingAllTask = false
|
loadingAllTask = false
|
||||||
|
|
||||||
|
agendaColor = ''
|
||||||
|
|
||||||
|
|
||||||
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Não lidos'
|
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Não lidos'
|
||||||
showSearch = true;
|
showSearch = true;
|
||||||
@@ -104,6 +106,11 @@ export class EventsPage implements OnInit {
|
|||||||
this.listToPresentexpediente = []
|
this.listToPresentexpediente = []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
if(this.agendaColor != "PR") {
|
||||||
|
this.agendaColor = "MDGPR"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit(): void {
|
ngAfterViewInit(): void {
|
||||||
|
|||||||
@@ -482,7 +482,11 @@ export class DespachoPage implements OnInit {
|
|||||||
await this.distartExpedientModal();
|
await this.distartExpedientModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(res.data?.action != 'cancel') {
|
||||||
this.goBack();
|
this.goBack();
|
||||||
|
}
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -713,7 +713,7 @@
|
|||||||
Pendentes<br>
|
Pendentes<br>
|
||||||
<span class="new-task-count" *ngIf="TaskService.pendentesstore.newList.length >=2">{{
|
<span class="new-task-count" *ngIf="TaskService.pendentesstore.newList.length >=2">{{
|
||||||
TaskService.pendentesstore.newList.length}} correspondências novas</span>
|
TaskService.pendentesstore.newList.length}} correspondências novas</span>
|
||||||
<span class="new-task-count" *ngIf="TaskService.pendentesstore.newList.length >=1">{{
|
<span class="new-task-count" *ngIf="TaskService.pendentesstore.newList.length ==1">{{
|
||||||
TaskService.pendentesstore.newList.length}} correspondência nova</span>
|
TaskService.pendentesstore.newList.length}} correspondência nova</span>
|
||||||
</p>
|
</p>
|
||||||
<p *ngIf="p.userPermission([p.permissionList.Gabinete.pr_tasks])" class="text-center exp-card-title ">Meus
|
<p *ngIf="p.userPermission([p.permissionList.Gabinete.pr_tasks])" class="text-center exp-card-title ">Meus
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import { ChatService } from 'src/app/services/chat.service';
|
|||||||
import { Platform } from '@ionic/angular';
|
import { Platform } from '@ionic/angular';
|
||||||
import { FirstEnterService } from '../../services/first-enter.service';
|
import { FirstEnterService } from '../../services/first-enter.service';
|
||||||
import { Storage } from '@ionic/storage';
|
import { Storage } from '@ionic/storage';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
|
||||||
import { CPSession } from 'src/app/store/documentManagement';
|
import { CPSession } from 'src/app/store/documentManagement';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-login',
|
selector: 'app-login',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" [(ngModel)]="folder.Description" placeholder="Assunto*" ></ion-input>
|
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" [(ngModel)]="folder.Description" placeholder="Assunto*" ></ion-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container-div">
|
<div class="container-div overflow-hidden">
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
<div class="ion-icon-class">
|
<div class="ion-icon-class">
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<mat-form-field appearance="none" class="date-hour-picker">
|
<mat-form-field appearance="none" class="date-hour-picker">
|
||||||
<input matInput [ngxMatDatetimePicker]="picker1"
|
<input matInput [ngxMatDatetimePicker]="picker1"
|
||||||
placeholder="Data inicio*"
|
placeholder="Data inicio*"
|
||||||
[formControl]="dateControlStart"
|
[(ngModel)]="dateControlStart"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1" ></mat-datepicker-toggle>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="container-div">
|
<div class="container-div overflow-hiddens">
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
<div class="ion-icon-class">
|
<div class="ion-icon-class">
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
||||||
@@ -63,9 +63,9 @@
|
|||||||
<mat-form-field appearance="none" class="date-hour-picker">
|
<mat-form-field appearance="none" class="date-hour-picker">
|
||||||
<input matInput [ngxMatDatetimePicker]="fim"
|
<input matInput [ngxMatDatetimePicker]="fim"
|
||||||
placeholder="Data de fim*"
|
placeholder="Data de fim*"
|
||||||
[formControl]="dateControlEnd"
|
[(ngModel)]="dateControlEnd"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
[min]="dateControlStart.value"
|
[min]="dateControlStart"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-fim" matSuffix [for]="fim" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-fim" matSuffix [for]="fim" ></mat-datepicker-toggle>
|
||||||
<ngx-mat-datetime-picker #fim
|
<ngx-mat-datetime-picker #fim
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ font-size: rem(25);
|
|||||||
}
|
}
|
||||||
.container-div{
|
.container-div{
|
||||||
margin-bottom: rem(15);
|
margin-bottom: rem(15);
|
||||||
overflow: auto;
|
|
||||||
}
|
}
|
||||||
.ion-item-container{
|
.ion-item-container{
|
||||||
margin: rem(15) auto;
|
margin: rem(15) auto;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import * as moment from 'moment';
|
|
||||||
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
||||||
import { PublicationsService } from 'src/app/services/publications.service';
|
import { PublicationsService } from 'src/app/services/publications.service';
|
||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
@@ -56,11 +55,11 @@ export class NewActionPage implements OnInit {
|
|||||||
showLoader = false
|
showLoader = false
|
||||||
|
|
||||||
get dateStart () {
|
get dateStart () {
|
||||||
return this.dateControlStart.value
|
return this.dateControlStart
|
||||||
}
|
}
|
||||||
|
|
||||||
get dateEnd () {
|
get dateEnd () {
|
||||||
return this.dateControlEnd.value
|
return this.dateControlEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@@ -74,8 +73,8 @@ export class NewActionPage implements OnInit {
|
|||||||
|
|
||||||
this.folder = new PublicationFolder();
|
this.folder = new PublicationFolder();
|
||||||
|
|
||||||
this.dateControlStart = new FormControl(this.roundTimeQuarterHour());
|
this.dateControlStart = this.roundTimeQuarterHour()
|
||||||
this.dateControlEnd = new FormControl(this.roundTimeQuarterHourPlus15(this.dateControlStart.value));
|
this.dateControlEnd = this.roundTimeQuarterHourPlus15(this.dateControlStart)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -96,7 +95,7 @@ export class NewActionPage implements OnInit {
|
|||||||
|
|
||||||
runValidation() {
|
runValidation() {
|
||||||
this.validateFrom = true;
|
this.validateFrom = true;
|
||||||
if(new Date(this.dateControlStart.value).getTime() > new Date(this.dateControlEnd.value).getTime()){
|
if(new Date(this.dateControlStart).getTime() > new Date(this.dateControlEnd).getTime()){
|
||||||
this.toastService._badRequest("A data de início não pode ser superior a data de fim");
|
this.toastService._badRequest("A data de início não pode ser superior a data de fim");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -129,8 +128,8 @@ export class NewActionPage implements OnInit {
|
|||||||
ProcessId: null,
|
ProcessId: null,
|
||||||
Description: this.folder.Description,
|
Description: this.folder.Description,
|
||||||
Detail: this.folder.Detail,
|
Detail: this.folder.Detail,
|
||||||
DateBegin: this.dateControlStart.value,
|
DateBegin: this.dateControlStart,
|
||||||
DateEnd: this.dateControlEnd.value,
|
DateEnd: this.dateControlEnd,
|
||||||
ActionType: this.segment,
|
ActionType: this.segment,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ ion-toolbar{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item:hover{
|
.item:hover{
|
||||||
background-color: var(--box-hover-background-color) !important;
|
background-color: var(--box-hover-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-item-options{
|
ion-item-options{
|
||||||
|
|||||||
@@ -502,6 +502,7 @@ export class MessageService {
|
|||||||
ts: this.ts,
|
ts: this.ts,
|
||||||
u: this.u,
|
u: this.u,
|
||||||
_id: this._id,
|
_id: this._id,
|
||||||
|
t: this.t,
|
||||||
id: this.id,
|
id: this.id,
|
||||||
hasFile: this.hasFile,
|
hasFile: this.hasFile,
|
||||||
origin: this.origin,
|
origin: this.origin,
|
||||||
|
|||||||
@@ -360,6 +360,12 @@ export class RoomService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ChatMessage?.t == "au") {
|
||||||
|
this.updateContacts()
|
||||||
|
} else if (ChatMessage?.t == "r") {
|
||||||
|
this.name = ChatMessage.msg
|
||||||
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
done()
|
done()
|
||||||
}, 5)
|
}, 5)
|
||||||
@@ -949,14 +955,73 @@ export class RoomService {
|
|||||||
this.messageUnread = false
|
this.messageUnread = false
|
||||||
}
|
}
|
||||||
|
|
||||||
addContacts(userId:any) {
|
async addContacts(userId:any) {
|
||||||
|
|
||||||
let body = {
|
let body = {
|
||||||
"roomId": this.id,
|
"roomId": this.id,
|
||||||
"userId": userId,
|
"userId": userId,
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.chatService.addUserToGroup(body).toPromise();
|
await this.chatService.addUserToGroup(body).toPromise();
|
||||||
|
this.ChatSystemService.getGroupRoom(this.id).updateContacts()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async updateContacts() {
|
||||||
|
|
||||||
|
let res
|
||||||
|
let error = false
|
||||||
|
|
||||||
|
if(this.t == 'd') {
|
||||||
|
|
||||||
|
try {
|
||||||
|
res = await this.chatService.getMembers(this.id).toPromise();
|
||||||
|
} catch (e) {
|
||||||
|
await this.chatService.refreshtoken();
|
||||||
|
error = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error) {
|
||||||
|
res = await this.chatService.getMembers(this.id).toPromise();
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (this.t === 'p') {
|
||||||
|
|
||||||
|
try {
|
||||||
|
res = await this.chatService.getGroupMembers(this.id).toPromise()
|
||||||
|
} catch (e) {
|
||||||
|
await this.chatService.refreshtoken();
|
||||||
|
error = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error) {
|
||||||
|
res = await this.chatService.getGroupMembers(this.id).toPromise()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
|
try {
|
||||||
|
res = await this.chatService.getChannelMembers(this.id).toPromise()
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
await this.chatService.refreshtoken();
|
||||||
|
error = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error) {
|
||||||
|
res = await this.chatService.getChannelMembers(this.id).toPromise()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const members = res['members'];
|
||||||
|
const users = members.filter(data => data.username != this.sessionStore.user.UserName);
|
||||||
|
this.members = members
|
||||||
|
this.membersExcludeMe = users
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ export class EditEventPage implements OnInit {
|
|||||||
participantes: new FormControl(this.taskParticipants, [
|
participantes: new FormControl(this.taskParticipants, [
|
||||||
// Validators.required
|
// Validators.required
|
||||||
]),
|
]),
|
||||||
Date: new FormControl( new Date(this._postEvent.StartDate).toLocaleString('pt') <= new Date(this._postEvent.EndDate).toLocaleString('pt')? 'ok': null,[
|
Date: new FormControl( new Date(this._postEvent.StartDate).toLocaleString('pt') < new Date(this._postEvent.EndDate).toLocaleString('pt')? 'ok': null,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ export class GroupContactsPage implements OnInit {
|
|||||||
"userId":user._id,
|
"userId":user._id,
|
||||||
}
|
}
|
||||||
this.chatService.addUserToGroup(body).subscribe(res=>{
|
this.chatService.addUserToGroup(body).subscribe(res=>{
|
||||||
|
this.ChatSystemService.getGroupRoom(roomId).updateContacts()
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="header-top">
|
<div class="header-top">
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">{{groupNameFormart }}</ion-label>
|
<ion-label class="title">{{ ChatSystemService.getGroupRoom(roomId).name }}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<button title="Menu" class="btn-no-color" (click)="openGroupMessagesOptions()">
|
<button title="Menu" class="btn-no-color" (click)="openGroupMessagesOptions()">
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-bottom-contacts">
|
<div class="header-bottom-contacts" *ngIf="ChatSystemService.getGroupRoom(roomId)">
|
||||||
<ion-label class="contacts-list" *ngFor="let member of members" >
|
<ion-label class="contacts-list" *ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe" >
|
||||||
{{member.name}},
|
{{member.name}},
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -110,18 +110,18 @@ export class ChatPopoverPage implements OnInit {
|
|||||||
|
|
||||||
//Delete
|
//Delete
|
||||||
deleteGroup() {
|
deleteGroup() {
|
||||||
let body = { "roomId":this.roomId, }
|
let body = { "roomId":this.roomId }
|
||||||
this.chatService.getRoomInfo(this.roomId).subscribe(room => {
|
this.chatService.getRoomInfo(this.roomId).subscribe(room => {
|
||||||
this.room = room['room'];
|
this.room = room['room'];
|
||||||
|
|
||||||
if(this.room.t === 'p') {
|
if(this.room.t === 'p') {
|
||||||
this.chatService.deleteGroup(body).subscribe(res=>{
|
this.chatService.deleteGroup(body).subscribe(res=>{
|
||||||
this.ChatSystemService.deleteRoom(this.roomId)
|
// this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.chatService.deleteChannel(body).subscribe(res=>{
|
this.chatService.deleteChannel(body).subscribe(res=>{
|
||||||
this.ChatSystemService.deleteRoom(this.roomId)
|
// this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
placeholder="Data de fim*"
|
placeholder="Data de fim*"
|
||||||
[(ngModel)]="folder.DateEnd"
|
[(ngModel)]="folder.DateEnd"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
|
[min]="folder.DateBegin"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-fim" matSuffix [for]="picker2" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-fim" matSuffix [for]="picker2" ></mat-datepicker-toggle>
|
||||||
<ngx-mat-datetime-picker #picker2
|
<ngx-mat-datetime-picker #picker2
|
||||||
|
|||||||
+21
-3
@@ -1476,12 +1476,30 @@ $font-size: rem(15);
|
|||||||
.mat-form-field {
|
.mat-form-field {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
// date picker
|
||||||
|
ngx-mat-datetime-content .actions {
|
||||||
|
z-index: 1;
|
||||||
|
position: relative;
|
||||||
|
top: -66px;
|
||||||
|
margin-bottom: -44px;
|
||||||
|
|
||||||
ngx-mat-datetime-content button.mat-stroked-button {
|
button {
|
||||||
top: -56px;
|
z-index: 11111111;
|
||||||
margin-bottom: -35px;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ngx-mat-datetime-content .ngx-mat-timepicker {
|
||||||
|
z-index: 111;
|
||||||
|
}
|
||||||
|
.mat-form-field-underline {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ngx-mat-datetime-content .mat-input-element {
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
pre {
|
pre {
|
||||||
font-family: 'Roboto' !important;
|
font-family: 'Roboto' !important;
|
||||||
font-size: rem(16) !important;
|
font-size: rem(16) !important;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "9ca9ee924",
|
"shortSHA": "834840fc4",
|
||||||
"SHA": "9ca9ee9245995d13e91238105d16263c5102923a",
|
"SHA": "834840fc419a5b2e66120c2b8d53bfef7a227242",
|
||||||
"branch": "developer",
|
"branch": "developer",
|
||||||
"lastCommitAuthor": "'Peter Maquiran'",
|
"lastCommitAuthor": "'Peter Maquiran'",
|
||||||
"lastCommitTime": "'Thu Aug 3 11:37:35 2023 +0100'",
|
"lastCommitTime": "'Thu Aug 3 11:58:33 2023 +0100'",
|
||||||
"lastCommitMessage": "fix f",
|
"lastCommitMessage": "fix",
|
||||||
"lastCommitNumber": "5126",
|
"lastCommitNumber": "5127",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch developer\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/search/search.page.ts",
|
"changeStatus": "On branch developer\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tnew file: index.html\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/models/message.model.ts\n\tmodified: src/app/pages/agenda/new-event/new-event.page.ts\n\tmodified: src/app/pages/chat/chat.page.ts\n\tmodified: src/app/pages/chat/edit-group/edit-group.page.scss\n\tmodified: src/app/pages/chat/group-messages/group-messages.page.html\n\tmodified: src/app/pages/chat/group-messages/group-messages.page.ts\n\tmodified: src/app/pages/events/events.page.html\n\tmodified: src/app/pages/events/events.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar/diplomas-gerar.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/pages/publications/new-action/new-action.page.html\n\tmodified: src/app/pages/publications/new-action/new-action.page.scss\n\tmodified: src/app/pages/publications/new-action/new-action.page.ts\n\tmodified: src/app/pages/publications/publications.page.scss\n\tmodified: src/app/services/chat/message.service.ts\n\tmodified: src/app/services/chat/room.service.ts\n\tmodified: src/app/shared/agenda/edit-event/edit-event.page.ts\n\tmodified: src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts\n\tmodified: src/app/shared/chat/group-messages/group-messages.page.html\n\tmodified: src/app/shared/popover/chat-popover/chat-popover.page.ts\n\tmodified: src/app/shared/publication/new-action/new-action.page.html\n\tmodified: src/global.scss",
|
||||||
"changeAuthor": "peter.maquiran"
|
"changeAuthor": "peter.maquiran"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user