mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController, PopoverController } from '@ionic/angular';
|
||||
import { ModalController, NavParams, PopoverController } from '@ionic/angular';
|
||||
import { PublicationsService } from 'src/app/services/publications.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-actions-options',
|
||||
@@ -8,12 +9,20 @@ import { ModalController, PopoverController } from '@ionic/angular';
|
||||
})
|
||||
export class ActionsOptionsPage implements OnInit {
|
||||
|
||||
id:string;
|
||||
|
||||
constructor(
|
||||
private popoverController: PopoverController,
|
||||
private modalController: ModalController,
|
||||
) { }
|
||||
private navParams: NavParams,
|
||||
private publicationsService: PublicationsService,
|
||||
) {
|
||||
this.id = this.navParams.get('id');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.id);
|
||||
|
||||
}
|
||||
|
||||
close () {
|
||||
@@ -23,7 +32,11 @@ export class ActionsOptionsPage implements OnInit {
|
||||
editAction(){}
|
||||
|
||||
deleteAction(){
|
||||
console.log('HEY');
|
||||
|
||||
console.log(this.id);
|
||||
this.publicationsService.DeletePresidentialAction(this.id).toPromise();
|
||||
this.close();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user