Event personification solved and event confirmation delete

This commit is contained in:
Eudes Inácio
2022-12-16 15:38:59 +01:00
11 changed files with 172 additions and 66 deletions
@@ -19,7 +19,7 @@
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="edit" slot="end" src="assets/images/theme/gov/icons-edit.svg" ></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="edit" slot="end" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-edit.svg" ></ion-icon>
</button>
<button class="btn-no-color" (click)="deleteEvent()">
<button class="btn-no-color" (click)="deleteYesOrNo()">
<ion-icon class="delete" name="trash-sharp"></ion-icon>
</button>
</div>
@@ -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) {