mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
edit mark ative item in list on accoes presidenciais
This commit is contained in:
@@ -225,7 +225,6 @@
|
||||
(goBackToViewPublications)="goBackToViewPublications()"
|
||||
(closeDesktopComponent)="closeDesktopComponent($event)"
|
||||
(getActions)="getActions()"
|
||||
(ativaClasse)="ativaClasse($event)"
|
||||
>
|
||||
</app-view-publications>
|
||||
|
||||
|
||||
@@ -343,10 +343,6 @@ export class PublicationsPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
ativaClasse(folderId: string){
|
||||
this.idSelected = folderId;
|
||||
}
|
||||
|
||||
async viewPublications(folderId: string) {
|
||||
this.folderId = folderId
|
||||
|
||||
@@ -405,6 +401,7 @@ export class PublicationsPage implements OnInit {
|
||||
goBackToViewPublications() {
|
||||
|
||||
this.closeDesktopComponent();
|
||||
this.idSelected = this.folderId;
|
||||
this.desktopComponent.showViewPublication = true;
|
||||
}
|
||||
|
||||
@@ -412,6 +409,7 @@ export class PublicationsPage implements OnInit {
|
||||
// Emitters
|
||||
goBackToPubications() {
|
||||
this.closeDesktopComponent();
|
||||
this.idSelected = this.folderId;
|
||||
this.desktopComponent.showViewPublication = true;
|
||||
}
|
||||
|
||||
@@ -433,6 +431,7 @@ export class PublicationsPage implements OnInit {
|
||||
// edit publication will send null
|
||||
if (folderId != undefined) {
|
||||
this.folderId = folderId;
|
||||
this.idSelected = this.folderId;
|
||||
}
|
||||
|
||||
this.publication = publication;
|
||||
@@ -449,6 +448,7 @@ export class PublicationsPage implements OnInit {
|
||||
this.publicationId = publicationId;
|
||||
|
||||
this.closeDesktopComponent();
|
||||
this.idSelected = this.folderId;
|
||||
this.desktopComponent.showPublicationDetail = true;
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ export class ViewPublicationsPage implements OnInit {
|
||||
@Output() closeDesktopComponent = new EventEmitter<any>();
|
||||
@Output() goBacktoPublicationDetails = new EventEmitter<any>();
|
||||
@Output() getActions= new EventEmitter<any>();
|
||||
@Output() ativaClasse= new EventEmitter<any>();
|
||||
|
||||
publicationPipe = new PublicationPipe()
|
||||
|
||||
@@ -197,6 +196,7 @@ export class ViewPublicationsPage implements OnInit {
|
||||
}
|
||||
|
||||
async openEditPublication(folderId?:any){
|
||||
console.log('object');
|
||||
if( window.innerWidth < 701) {
|
||||
const modal = await this.modalController.create({
|
||||
component: EditActionPage,
|
||||
@@ -253,7 +253,6 @@ export class ViewPublicationsPage implements OnInit {
|
||||
// }
|
||||
|
||||
this.openPublicationDetails.emit(publicationId);
|
||||
this.ativaClasse.emit(this.folderId);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user