mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
pull made
This commit is contained in:
@@ -6,7 +6,6 @@ import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expedient
|
||||
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 { AlertService } from 'src/app/services/alert.service';
|
||||
import { AlertController, ModalController } from '@ionic/angular';
|
||||
@Component({
|
||||
selector: 'app-view-document',
|
||||
|
||||
+4
-5
@@ -108,7 +108,6 @@ export class BookMeetingModalPage implements OnInit {
|
||||
emptyTextDescription = "Sem intervenientes selecionados";
|
||||
|
||||
CalendarName
|
||||
CalendarOwnerName = ''
|
||||
|
||||
sessionStore = SessionStore;
|
||||
|
||||
@@ -352,12 +351,12 @@ export class BookMeetingModalPage implements OnInit {
|
||||
|
||||
selectedCalendarId () {
|
||||
|
||||
if (this.calendarService.calendarNamesType[this.CalendarOwnerName]?.['Oficial'] && this.postData.CalendarName == 'Oficial') {
|
||||
return this.calendarService.calendarNamesType[this.CalendarOwnerName]['OficialId']
|
||||
if (this.calendarService.calendarNamesType[this.CalendarName]?.['Oficial'] && this.postData.CalendarName == 'Oficial') {
|
||||
return this.calendarService.calendarNamesType[this.CalendarName]['OficialId']
|
||||
|
||||
} else if (this.calendarService.calendarNamesType[this.CalendarOwnerName]?.['Pessoal'] && this.postData.CalendarName == 'Pessoal') {
|
||||
} else if (this.calendarService.calendarNamesType[this.CalendarName]?.['Pessoal'] && this.postData.CalendarName == 'Pessoal') {
|
||||
|
||||
return this.calendarService.calendarNamesType[this.CalendarOwnerName]['PessoalId']
|
||||
return this.calendarService.calendarNamesType[this.CalendarName]['PessoalId']
|
||||
|
||||
} else {
|
||||
return '11:11'
|
||||
|
||||
@@ -182,7 +182,7 @@ export class ViewEventPage implements OnInit {
|
||||
|
||||
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () => {
|
||||
this.toastService.successMessage('Evento apagado');
|
||||
this.toastService._successMessage('Evento eliminado');
|
||||
this.close();
|
||||
},()=>{},
|
||||
()=>{
|
||||
@@ -192,7 +192,7 @@ export class ViewEventPage implements OnInit {
|
||||
|
||||
if(this.CalendarId) {
|
||||
this.eventsService.genericDeleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName, this.CalendarId).subscribe(async () => {
|
||||
this.toastService.successMessage('Evento apagado');
|
||||
this.toastService._successMessage('Evento eliminado');
|
||||
this.close();
|
||||
},()=>{},
|
||||
()=>{
|
||||
@@ -208,7 +208,7 @@ export class ViewEventPage implements OnInit {
|
||||
|
||||
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () => {
|
||||
this.toastService.successMessage('Evento apagado');
|
||||
this.toastService._successMessage('Evento eliminado');
|
||||
this.close();
|
||||
},()=>{},
|
||||
()=>{
|
||||
@@ -216,7 +216,7 @@ export class ViewEventPage implements OnInit {
|
||||
});
|
||||
} else {
|
||||
this.eventsService.genericDeleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName, this.CalendarId).subscribe(async () => {
|
||||
this.toastService.successMessage('Evento apagado');
|
||||
this.toastService._successMessage('Evento eliminado');
|
||||
this.close();
|
||||
},()=>{},
|
||||
()=>{
|
||||
|
||||
Reference in New Issue
Block a user