remove duplicated button in expediente

This commit is contained in:
tiago.kayaya
2021-12-14 16:22:53 +01:00
parent 2428fe5cee
commit d644b5dc0f
3 changed files with 7 additions and 9 deletions
@@ -70,7 +70,7 @@ export class PublicationsPage implements OnInit {
private backgroundservice: BackgroundService,
private platform: Platform,
public ThemeService: ThemeService,
) {
this.months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
this.days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
@@ -187,7 +187,7 @@ export class PublicationsPage implements OnInit {
}
getFromDB() {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
} else {
this.sqliteservice.getAllActions().then((actions: any[]) => {
@@ -277,13 +277,12 @@ export class PublicationsPage implements OnInit {
}
goToPublicationsList(folderId: string) {
this.folderId = folderId
this.idSelected = folderId;
if (window.innerWidth <= 800) {
this.router.navigate(['/home/publications', folderId]);
this.idSelected = "";
} else {
this.closeDesktopComponent();
this.idSelected = folderId;
this.folderId = folderId
this.desktopComponent.showViewPublication = true;
}
@@ -461,5 +460,5 @@ export class PublicationsPage implements OnInit {
// newImage => console.log('new image path is: ' + newImage),
// error => console.error('Error cropping image', error)
// );
}