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()"
|
(goBackToViewPublications)="goBackToViewPublications()"
|
||||||
(closeDesktopComponent)="closeDesktopComponent($event)"
|
(closeDesktopComponent)="closeDesktopComponent($event)"
|
||||||
(getActions)="getActions()"
|
(getActions)="getActions()"
|
||||||
(ativaClasse)="ativaClasse($event)"
|
|
||||||
>
|
>
|
||||||
</app-view-publications>
|
</app-view-publications>
|
||||||
|
|
||||||
|
|||||||
@@ -343,10 +343,6 @@ export class PublicationsPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ativaClasse(folderId: string){
|
|
||||||
this.idSelected = folderId;
|
|
||||||
}
|
|
||||||
|
|
||||||
async viewPublications(folderId: string) {
|
async viewPublications(folderId: string) {
|
||||||
this.folderId = folderId
|
this.folderId = folderId
|
||||||
|
|
||||||
@@ -405,6 +401,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
goBackToViewPublications() {
|
goBackToViewPublications() {
|
||||||
|
|
||||||
this.closeDesktopComponent();
|
this.closeDesktopComponent();
|
||||||
|
this.idSelected = this.folderId;
|
||||||
this.desktopComponent.showViewPublication = true;
|
this.desktopComponent.showViewPublication = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -412,6 +409,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
// Emitters
|
// Emitters
|
||||||
goBackToPubications() {
|
goBackToPubications() {
|
||||||
this.closeDesktopComponent();
|
this.closeDesktopComponent();
|
||||||
|
this.idSelected = this.folderId;
|
||||||
this.desktopComponent.showViewPublication = true;
|
this.desktopComponent.showViewPublication = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -433,6 +431,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
// edit publication will send null
|
// edit publication will send null
|
||||||
if (folderId != undefined) {
|
if (folderId != undefined) {
|
||||||
this.folderId = folderId;
|
this.folderId = folderId;
|
||||||
|
this.idSelected = this.folderId;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.publication = publication;
|
this.publication = publication;
|
||||||
@@ -449,6 +448,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
this.publicationId = publicationId;
|
this.publicationId = publicationId;
|
||||||
|
|
||||||
this.closeDesktopComponent();
|
this.closeDesktopComponent();
|
||||||
|
this.idSelected = this.folderId;
|
||||||
this.desktopComponent.showPublicationDetail = true;
|
this.desktopComponent.showPublicationDetail = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
@Output() closeDesktopComponent = new EventEmitter<any>();
|
@Output() closeDesktopComponent = new EventEmitter<any>();
|
||||||
@Output() goBacktoPublicationDetails = new EventEmitter<any>();
|
@Output() goBacktoPublicationDetails = new EventEmitter<any>();
|
||||||
@Output() getActions= new EventEmitter<any>();
|
@Output() getActions= new EventEmitter<any>();
|
||||||
@Output() ativaClasse= new EventEmitter<any>();
|
|
||||||
|
|
||||||
publicationPipe = new PublicationPipe()
|
publicationPipe = new PublicationPipe()
|
||||||
|
|
||||||
@@ -197,6 +196,7 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async openEditPublication(folderId?:any){
|
async openEditPublication(folderId?:any){
|
||||||
|
console.log('object');
|
||||||
if( window.innerWidth < 701) {
|
if( window.innerWidth < 701) {
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: EditActionPage,
|
component: EditActionPage,
|
||||||
@@ -253,7 +253,6 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.openPublicationDetails.emit(publicationId);
|
this.openPublicationDetails.emit(publicationId);
|
||||||
this.ativaClasse.emit(this.folderId);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user