Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer

This commit is contained in:
Peter Maquiran
2021-06-25 11:16:23 +01:00
8 changed files with 21 additions and 13 deletions
+1 -2
View File
@@ -20297,8 +20297,7 @@
}, },
"ssri": { "ssri": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", "resolved": "",
"integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==",
"dev": true, "dev": true,
"requires": { "requires": {
"figgy-pudding": "^3.5.1" "figgy-pudding": "^3.5.1"
@@ -161,6 +161,7 @@ export class BookMeetingModalPage implements OnInit {
} }
} }
async saveTask(){ async saveTask(){
console.log('HERE');
// issue12323423 // issue12323423
let Attendees = this.taskParticipants.concat(this.taskParticipantsCc); let Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
@@ -40,8 +40,8 @@
</div> </div>
<div class="ion-input-class flex-grow-1"> <div class="ion-input-class flex-grow-1">
<mat-form-field class="width-100" placeholder="Selecione agenda"> <mat-form-field floatLabel="never" class="width-100" >
<mat-select [(value)]="postEvent.CalendarName" > <mat-select placeholder="Selecione agenda" [(ngModel)]="postEvent.CalendarName" >
<mat-option value="Oficial"> <mat-option value="Oficial">
Oficial Oficial
</mat-option> </mat-option>
@@ -96,6 +96,7 @@ export class EditEventPage implements OnInit {
ngOnInit() { ngOnInit() {
if(!this.restoreTemporaryData()){ if(!this.restoreTemporaryData()){
// clear // clear
@@ -15,7 +15,7 @@
<div class="main-content"> <div class="main-content">
<div class="ion-item-container"> <div class="ion-item-container">
<ion-input type="text" placeholder="Assunto" [(ngModel)]="postEvent.Subject"></ion-input> <ion-input type="text" placeholder="Assunto*" [(ngModel)]="postEvent.Subject"></ion-input>
</div> </div>
<div class="container-div"> <div class="container-div">
<div class="ion-item-class-2 d-flex"> <div class="ion-item-class-2 d-flex">
@@ -23,7 +23,7 @@
<ion-icon slot="start" src="assets/images/icons-location.svg"></ion-icon> <ion-icon slot="start" src="assets/images/icons-location.svg"></ion-icon>
</div> </div>
<div class="ion-input-class flex-grow-1"> <div class="ion-input-class flex-grow-1">
<ion-input type="text" placeholder="Localização" [(ngModel)]="postEvent.Location"></ion-input> <ion-input type="text" placeholder="Localização*" [(ngModel)]="postEvent.Location"></ion-input>
</div> </div>
</div> </div>
@@ -144,8 +144,8 @@
</div> </div>
<div class="ion-input-class flex-grow-1 d-flex justify-center align-center material-inputs materia-top"> <div class="ion-input-class flex-grow-1 d-flex justify-center align-center material-inputs materia-top">
<mat-form-field class="width-100" placeholder="Selecione repetição" value="false" interface="action-sheet" required> <mat-form-field floatLabel="never" class="width-100" value="false" interface="action-sheet" required>
<mat-select [(value)]="postEvent.IsRecurring"> <mat-select placeholder="Selecione repetição*" [(ngModel)]="postEvent.IsRecurring">
<mat-option value="false"> <mat-option value="false">
Não se repete Não se repete
</mat-option> </mat-option>
@@ -169,7 +169,7 @@
<div class="list-people"> <div class="list-people">
<ion-item lines="none"> <ion-item lines="none">
<ion-list> <ion-list>
<ion-label *ngIf="taskParticipants.length ==0" class="list-people-title">Adicionar intervenientes</ion-label> <ion-label *ngIf="taskParticipants.length ==0" class="list-people-title">Adicionar intervenientes*</ion-label>
<ion-label *ngFor="let participant of taskParticipants">{{participant.Name}}</ion-label> <ion-label *ngFor="let participant of taskParticipants">{{participant.Name}}</ion-label>
</ion-list> </ion-list>
</ion-item> </ion-item>
@@ -91,6 +91,7 @@
.list-people{ .list-people{
width: 256px; width: 256px;
float: left; float: left;
color: #ebebeb;
} }
.add-people{ .add-people{
@@ -102,7 +103,7 @@
} }
.list-people-title{ .list-people-title{
/* font-size: 13px; */ /* font-size: 13px; */
color: #797979; color: #a3a3a3;
} }
.attach-document{ .attach-document{
font-size: 15px; font-size: 15px;
@@ -297,7 +297,10 @@ export class NewEventPage implements OnInit {
// console.log('MD - Aqui'); // console.log('MD - Aqui');
// console.log(this.postEvent); // console.log(this.postEvent);
this.showLoader = true this.showLoader = true;
console.log(this.postEvent);
this.eventService.postEventMd(this.postEvent, this.postEvent.CalendarName).subscribe( this.eventService.postEventMd(this.postEvent, this.postEvent.CalendarName).subscribe(
async (id) => { async (id) => {
@@ -12,6 +12,7 @@ import { momentG } from 'src/plugin/momentG';
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page'; import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
import { ChatPopoverPage } from '../../popover/chat-popover/chat-popover.page'; import { ChatPopoverPage } from '../../popover/chat-popover/chat-popover.page';
import { OptsExpedientePage } from '../../popover/opts-expediente/opts-expediente.page'; import { OptsExpedientePage } from '../../popover/opts-expediente/opts-expediente.page';
import { ToastService } from 'src/app/services/toast.service';
@Component({ @Component({
selector: 'app-view-event', selector: 'app-view-event',
@@ -51,7 +52,8 @@ export class ViewEventPage implements OnInit {
private iab: InAppBrowser, private iab: InAppBrowser,
private processes: ProcessesService, private processes: ProcessesService,
private modalController: ModalController, private modalController: ModalController,
public popoverController: PopoverController public popoverController: PopoverController,
private toastService: ToastService
) )
{ {
this.isEventEdited = false; this.isEventEdited = false;
@@ -111,6 +113,7 @@ export class ViewEventPage implements OnInit {
setTimeout(()=>{ setTimeout(()=>{
alert.dismiss(); alert.dismiss();
}, 1500); }, 1500);
this.toastService.successMessage('Evento apagado');
this.close(); this.close();
}); });
} }