+
-
-
+
-
+
52 ? (hours === 23 ? 0 : ++hours) : hours;
+
+ if (m == 0) {
+ timeToReturn.setHours(h);
+ timeToReturn.setMinutes(m);
+ }else{
+ if(minutes > m){
+ m = m + 15;
+
+ timeToReturn.setHours(h);
+ timeToReturn.setMinutes(m);
+ }
+ }
+
+ // console.log("AFTER IF MINUTES: " +m);
+ // console.log("AFTER HOURS: " +h);
+
+ return timeToReturn;
+ }
+
+ setStartDate(){
+ this.postEvent.StartDate = this.roundTimeQuarterHour();
+ }
+
+ setEndDate(){
+ this.postEvent.EndDate = this.postEvent.StartDate;
+ }
+
runValidation() {
this.validateFrom = true;
if(new Date(this.postEvent.StartDate).getTime() > new Date(this.postEvent.EndDate).getTime()){
diff --git a/src/app/shared/agenda/view-event/view-event.page.html b/src/app/shared/agenda/view-event/view-event.page.html
index c04724732..d5c7fb2e3 100644
--- a/src/app/shared/agenda/view-event/view-event.page.html
+++ b/src/app/shared/agenda/view-event/view-event.page.html
@@ -19,7 +19,7 @@
-
diff --git a/src/app/shared/agenda/view-event/view-event.page.ts b/src/app/shared/agenda/view-event/view-event.page.ts
index ae42bc358..ee0f241f1 100644
--- a/src/app/shared/agenda/view-event/view-event.page.ts
+++ b/src/app/shared/agenda/view-event/view-event.page.ts
@@ -150,6 +150,29 @@ export class ViewEventPage implements OnInit {
}
+ deleteYesOrNo() {
+ this.alertController.create({
+ header: 'Eliminar evento?',
+ message: '',
+ buttons: [
+ {
+ text: 'Não',
+ handler: () => {
+ console.log('Let me think');
+ }
+ },
+ {
+ text: 'Sim',
+ handler: () => {
+ this.deleteEvent();
+ }
+ }
+ ]
+ }).then(res => {
+ res.present();
+ });
+ }
+
async deleteEvent() {
if (this.loadedEvent.IsRecurring) {
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index 7d43c5a1c..0bfa1d818 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -1,47 +1,18 @@
-// This file can be replaced during build by using the `fileReplacements` array.
-// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
-// The list of file replacements can be found in `angular.json`.
-
-
-// const DEV = {
-// apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
-// apiChatUrl: 'https://www.tabularium.pt/api/v1/',
-// apiWsChatUrl: 'wss://www.tabularium.pt/websocket',
-// defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
-// defaultuserpwd: 'tabteste@006', //tabteste@006,
-// }
-
-// const QEI = {
-// apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
-// apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket',
-// apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
-// defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
-// defaultuserpwd: 'tabteste@006', //tabteste@006,
-// }
-
export const environment = {
- production: false,
- //apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
+ // apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
apiURL: 'https://gd-api.oapr.gov.ao/api/',
- //apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
+ // apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
+ // apiChatUrl: 'http://192.168.0.29:3000/api/v1/',
+ // apiWsChatUrl: 'wss://192.168.0.29:3000/websocket',
apiChatUrl: 'https://gd-chat.oapr.gov.ao/api/v1/',
apiWsChatUrl: 'ws://gd-chat.oapr.gov.ao/websocket',
- // apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
- // apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
/* apiChatUrl: 'https://www.tabularium.pt/api/v1/',
apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */
- domain: 'gabinetedigital.local', //gabinetedigital.local
+ // apiChatUrl: 'https://www.tabularium.pt/api/v1/',
+ production: true,
+ domain: 'gabinetedigital.local',
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
defaultuserpwd: 'tabteste@006', //tabteste@006,
chatOffline: true,
presidencia: false,
};
-
-/*
- * For easier debugging in dev elopment mode, you can import the following file
- * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
- *
- * This import should be commented out in production mode because it will have a negative impact
- * on performance if an error is thrown.
- */
-// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.