diff --git a/src/app/pages/agenda/new-event/new-event.page.scss b/src/app/pages/agenda/new-event/new-event.page.scss
index 1d201302a..3090c356e 100644
--- a/src/app/pages/agenda/new-event/new-event.page.scss
+++ b/src/app/pages/agenda/new-event/new-event.page.scss
@@ -104,7 +104,7 @@ ion-content{
}
.list-people-title{
/* font-size: 13px; */
- color: #797979;
+ color: #a3a3a3;
}
.attach-document{
font-size: 15px;
diff --git a/src/app/pages/agenda/view-event/view-event.page.ts b/src/app/pages/agenda/view-event/view-event.page.ts
index b54ba055a..0b413e7c6 100644
--- a/src/app/pages/agenda/view-event/view-event.page.ts
+++ b/src/app/pages/agenda/view-event/view-event.page.ts
@@ -13,6 +13,7 @@ import { ExpedientTaskModalPage } from '../../gabinete-digital/expediente/expedi
import { BookMeetingModalPage } from '../../gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
import { OptsExpedientePage } from 'src/app/shared/popover/opts-expediente/opts-expediente.page';
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
+import { ToastService } from 'src/app/services/toast.service';
@Component({
selector: 'app-view-event',
@@ -53,6 +54,7 @@ export class ViewEventPage implements OnInit {
public popoverController: PopoverController,
private activatedRoute: ActivatedRoute,
private router: Router,
+ private toastService: ToastService,
)
{
this.isEventEdited = false;
@@ -134,7 +136,7 @@ export class ViewEventPage implements OnInit {
setTimeout(()=>{
alert.dismiss();
}, 1500);
-
+ this.toastService.successMessage('Evento apagado');
this.close();
});
}
diff --git a/src/app/pages/events/events.page.ts b/src/app/pages/events/events.page.ts
index 95791e630..9f2d50d46 100644
--- a/src/app/pages/events/events.page.ts
+++ b/src/app/pages/events/events.page.ts
@@ -141,7 +141,7 @@ export class EventsPage implements OnInit {
this.showLoader = false;
}
- else{
+ else if (this.loggeduser.Profile == 'PR'){
let prOficialEvents= await this.eventService.getAllPrOficialEvents(start, end).toPromise();
let prPessoalEvents= await this.eventService.getAllPrPessoalEvents(start, end).toPromise();
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal-routing.module.ts b/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal-routing.module.ts
deleted file mode 100644
index 41b207888..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal-routing.module.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { NgModule } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-
-import { AddParticipantsCcModalPage } from './add-participants-cc-modal.page';
-
-const routes: Routes = [
- {
- path: '',
- component: AddParticipantsCcModalPage
- }
-];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule],
-})
-export class AddParticipantsCcModalPageRoutingModule {}
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.module.ts b/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.module.ts
deleted file mode 100644
index bc0249591..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.module.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { FormsModule } from '@angular/forms';
-
-import { IonicModule } from '@ionic/angular';
-
-import { AddParticipantsCcModalPageRoutingModule } from './add-participants-cc-modal-routing.module';
-
-import { AddParticipantsCcModalPage } from './add-participants-cc-modal.page';
-
-@NgModule({
- imports: [
- CommonModule,
- FormsModule,
- IonicModule,
- AddParticipantsCcModalPageRoutingModule
- ],
- declarations: [AddParticipantsCcModalPage]
-})
-export class AddParticipantsCcModalPageModule {}
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.html b/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.html
deleted file mode 100644
index b4bed4fb0..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
- Com conhecimento
-
-
-
-
-
-
-
-
-
-
-
- {{ attendee.Name }}
- {{ attendee.EmailAddress }}
-
-
-
-
-
-
-
-
-
-
-
- Cancelar
-
-
- Gravar
-
-
-
-
-
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.scss b/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.scss
deleted file mode 100644
index 5e0ed3224..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-ion-header{
- padding: 20px 20px 0px 20px;
-}
-ion-content{
- --padding-top: 20px;
- --padding-start: 15px;
- --padding-end: 20px;
-}
-
-.container-footer{
- margin:0 auto;
- overflow: auto;
-}
-.button-cancel {
- width: 170px;
- height: 44px;
- border-radius: 22.5px;
- --background: #e0e9ee;
- --color: #061b52;
- margin:10px;
- }
- .button-save {
- width: 170px;
- height: 44px;
- border-radius: 22.5px;
- --background: #42b9fe;
- --color:#ffffff;
- margin:10px;
- }
\ No newline at end of file
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.spec.ts b/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.spec.ts
deleted file mode 100644
index 23481cfde..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.spec.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-import { IonicModule } from '@ionic/angular';
-
-import { AddParticipantsCcModalPage } from './add-participants-cc-modal.page';
-
-describe('AddParticipantsCcModalPage', () => {
- let component: AddParticipantsCcModalPage;
- let fixture: ComponentFixture
;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ AddParticipantsCcModalPage ],
- imports: [IonicModule.forRoot()]
- }).compileComponents();
-
- fixture = TestBed.createComponent(AddParticipantsCcModalPage);
- component = fixture.componentInstance;
- fixture.detectChanges();
- }));
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts b/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts
deleted file mode 100644
index 07e6b8d65..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-cc-modal/add-participants-cc-modal.page.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import { ModalController, NavParams } from '@ionic/angular';
-import { EventPerson } from 'src/app/models/eventperson.model';
-import { ContactsService } from 'src/app/services/contacts.service';
-
-@Component({
- selector: 'app-add-participants-cc-modal',
- templateUrl: './add-participants-cc-modal.page.html',
- styleUrls: ['./add-participants-cc-modal.page.scss'],
-})
-export class AddParticipantsCcModalPage implements OnInit {
-
- contacts: EventPerson[];
- showLoader: boolean = false;
- eventPersons: EventPerson[];
- participantsAdded: any;
-
- constructor(private modalController: ModalController,
- private contactsService: ContactsService,
- private navParams: NavParams,
- ) {
- this.participantsAdded = this.navParams.get('eventPersons');
- }
-
- ngOnInit() {
- this.fetchContacts("");
- }
-
- onChange(evt: any) {
- this.fetchContacts(evt.detail.value);
- }
-
- selectContact(itm: EventPerson){
- itm.IsRequired = !itm.IsRequired;
- }
-
- async fetchContacts(filter: string) {
- this.showLoader = true;
-
- this.contactsService.getContacts(filter).subscribe(result =>
- {
- if (this.participantsAdded != null)
- {
- this.participantsAdded.forEach(attendee => {
- const index: number = result.findIndex((cont) => {
- return cont.EmailAddress == attendee.UserId
- });
-
- result.splice(index, 1);
- });
- }
- this.contacts = result;
- this.showLoader = false;
- }
- );
- }
-
- cancelTask(){
- this.modalController.dismiss(null);
- }
-
- saveTask(){
- this.modalController.dismiss(this.contacts.filter(function(contact) {
- if(contact.IsRequired){
- /* console.log(contact); */
- }
-
- return contact.IsRequired == true;
- }));
- }
-
-}
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal-routing.module.ts b/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal-routing.module.ts
deleted file mode 100644
index f6e6c6ca7..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal-routing.module.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { NgModule } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-
-import { AddParticipantsModalPage } from './add-participants-modal.page';
-
-const routes: Routes = [
- {
- path: '',
- component: AddParticipantsModalPage
- }
-];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule],
-})
-export class AddParticipantsModalPageRoutingModule {}
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.module.ts b/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.module.ts
deleted file mode 100644
index 7ba6edc49..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.module.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { FormsModule } from '@angular/forms';
-
-import { IonicModule } from '@ionic/angular';
-
-import { AddParticipantsModalPageRoutingModule } from './add-participants-modal-routing.module';
-
-import { AddParticipantsModalPage } from './add-participants-modal.page';
-
-@NgModule({
- imports: [
- CommonModule,
- FormsModule,
- IonicModule,
- AddParticipantsModalPageRoutingModule
- ],
- declarations: [AddParticipantsModalPage]
-})
-export class AddParticipantsModalPageModule {}
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.html b/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.html
deleted file mode 100644
index f654a2caa..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
- Adicionar Intervenientes - TK
-
-
-
-
-
-
-
-
-
-
-
-
- {{ attendee.Name }}
- {{ attendee.EmailAddress }}
-
-
-
-
-
-
-
-
-
-
-
-
- Cancelar
-
-
- Gravar
-
-
-
-
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.scss b/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.scss
deleted file mode 100644
index 5e0ed3224..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-ion-header{
- padding: 20px 20px 0px 20px;
-}
-ion-content{
- --padding-top: 20px;
- --padding-start: 15px;
- --padding-end: 20px;
-}
-
-.container-footer{
- margin:0 auto;
- overflow: auto;
-}
-.button-cancel {
- width: 170px;
- height: 44px;
- border-radius: 22.5px;
- --background: #e0e9ee;
- --color: #061b52;
- margin:10px;
- }
- .button-save {
- width: 170px;
- height: 44px;
- border-radius: 22.5px;
- --background: #42b9fe;
- --color:#ffffff;
- margin:10px;
- }
\ No newline at end of file
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.spec.ts b/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.spec.ts
deleted file mode 100644
index 33f7c7d91..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.spec.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-import { IonicModule } from '@ionic/angular';
-
-import { AddParticipantsModalPage } from './add-participants-modal.page';
-
-describe('AddParticipantsModalPage', () => {
- let component: AddParticipantsModalPage;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ AddParticipantsModalPage ],
- imports: [IonicModule.forRoot()]
- }).compileComponents();
-
- fixture = TestBed.createComponent(AddParticipantsModalPage);
- component = fixture.componentInstance;
- fixture.detectChanges();
- }));
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.ts b/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.ts
deleted file mode 100644
index 818795e56..000000000
--- a/src/app/pages/gabinete-digital/expediente/add-participants-modal/add-participants-modal.page.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import { ModalController, NavParams } from '@ionic/angular';
-import { EventPerson } from 'src/app/models/eventperson.model';
-import { ContactsService } from 'src/app/services/contacts.service';
-
-@Component({
- selector: 'app-add-participants-modal',
- templateUrl: './add-participants-modal.page.html',
- styleUrls: ['./add-participants-modal.page.scss'],
-})
-export class AddParticipantsModalPage implements OnInit {
-
- contacts: EventPerson[];
- showLoader: boolean = false;
- eventPersons: EventPerson[];
- participantsAdded: any;
-
- constructor(private modalController: ModalController,
- private contactsService: ContactsService,
- private navParams: NavParams,) { }
-
- ngOnInit() {
- this.fetchContacts("");
- this.participantsAdded = this.navParams.get('eventPersons');
- }
- async fetchContacts(filter: string) {
- this.showLoader = true;
-
- this.contactsService.getContacts(filter).subscribe(result =>
- {
- if (this.participantsAdded != null)
- {
- this.participantsAdded.forEach(attendee => {
- const index: number = result.findIndex((cont) => {
- return cont.EmailAddress == attendee.UserId
- });
-
- result.splice(index, 1);
- });
- }
- this.contacts = result;
- this.showLoader = false;
- }
- );
- }
-
- onChange(evt: any) {
- this.fetchContacts(evt.detail.value);
- }
-
- selectContact(itm: EventPerson){
- itm.IsRequired = !itm.IsRequired;
- }
-
- cancelTask(){
- this.modalController.dismiss(null);
- }
-
- saveTask(){
- this.modalController.dismiss(this.contacts.filter(function(contact) {
- if(contact.IsRequired){
- /* console.log(contact); */
- }
-
- return contact.IsRequired == true;
- }));
- }
-
-}
diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html
index 66633a13e..4de07a3f2 100644
--- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html
+++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html
@@ -69,7 +69,7 @@
diff --git a/src/app/pages/login/login.page.html b/src/app/pages/login/login.page.html
index 7d127100f..862892e0c 100644
--- a/src/app/pages/login/login.page.html
+++ b/src/app/pages/login/login.page.html
@@ -15,7 +15,7 @@