mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Melhorias
Alterar a ordem de apresentação do pop up sobre a recorrencia - Apresentar logo após o click no botão de edição do evento; A app não envia o comentario na revisão de eventos; Ao remover a recorrência do evento a app não remove os eventos da Agenda
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { EventRecurrencePage } from './event-recurrence.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: EventRecurrencePage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class EventRecurrencePageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { EventRecurrencePageRoutingModule } from './event-recurrence-routing.module';
|
||||
|
||||
import { EventRecurrencePage } from './event-recurrence.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
EventRecurrencePageRoutingModule
|
||||
],
|
||||
declarations: [EventRecurrencePage]
|
||||
})
|
||||
export class EventRecurrencePageModule {}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
<ion-content>
|
||||
<div class="pb-30 text-center pt-25">Este é um evento recorrente</div>
|
||||
<div>
|
||||
<ion-buttons slot="start" class="pb-15">
|
||||
<button class="btn-ok" style="width: 240px !important" fill="clear" color="#fff" (click)="close('EditAll')" >
|
||||
<ion-label>Editar todos eventos da serie</ion-label>
|
||||
</button>
|
||||
</ion-buttons>
|
||||
<ion-buttons slot="end" class="pb-15">
|
||||
<button class="btn-cancel" fill="clear" color="#061b52" style="width: 240px !important" (click)="close('EditOne')">
|
||||
<ion-label>Editar apenas este evento</ion-label>
|
||||
</button>
|
||||
</ion-buttons>
|
||||
<ion-buttons slot="end">
|
||||
<button class="btn-cancel" fill="clear" color="#061b52" style="width: 240px !important" (click)="close('Cancel')">
|
||||
<ion-label>Cancelar</ion-label>
|
||||
</button>
|
||||
</ion-buttons>
|
||||
|
||||
</div>
|
||||
</ion-content>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { EventRecurrencePage } from './event-recurrence.page';
|
||||
|
||||
describe('EventRecurrencePage', () => {
|
||||
let component: EventRecurrencePage;
|
||||
let fixture: ComponentFixture<EventRecurrencePage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ EventRecurrencePage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(EventRecurrencePage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
|
||||
export type EventRecurrenceComponentReturn = 'EditAll' | 'EditOne' | 'Cancel'
|
||||
|
||||
@Component({
|
||||
selector: 'app-event-recurrence',
|
||||
templateUrl: './event-recurrence.page.html',
|
||||
styleUrls: ['./event-recurrence.page.scss'],
|
||||
})
|
||||
export class EventRecurrencePage implements OnInit {
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController
|
||||
) { }
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
close(data: EventRecurrenceComponentReturn) {
|
||||
this.modalController.dismiss(data)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user