This commit is contained in:
Peter Maquiran
2021-11-18 14:07:04 +01:00
parent 562e405f19
commit 4f52f91420
3 changed files with 8 additions and 6 deletions
@@ -11,7 +11,7 @@ import { ToastService } from 'src/app/services/toast.service';
import { customTask, fullTask } from 'src/app/models/dailyworktask.model';
import { PermissionService } from 'src/app/services/worker/permission.service';
import { ThemeService } from 'src/app/services/theme.service'
import { Location } from '@angular/common'
@Component({
selector: 'app-despachos-options',
@@ -32,7 +32,8 @@ export class DespachosOptionsPage implements OnInit {
private navParams: NavParams,
private toastService: ToastService,
public p: PermissionService,
public ThemeService: ThemeService
public ThemeService: ThemeService,
private location: Location,
) {
this.task = this.navParams.get('task')
this.fulltask = this.navParams.get('fulltask')
@@ -309,7 +310,7 @@ export class DespachosOptionsPage implements OnInit {
}
goBack() {
this.router.navigate(['/home/gabinete-digital/despachos']);
this.location.back();
}
}
@@ -35,7 +35,8 @@ export class DespachosPrOptionsPage implements OnInit {
private toastService: ToastService,
private location: Location,
public p: PermissionService,
public ThemeService: ThemeService
public ThemeService: ThemeService,
) { }
ngOnInit() {
@@ -363,7 +364,7 @@ export class DespachosPrOptionsPage implements OnInit {
}
goBack() {
this.router.navigate(['/home/gabinete-digital/despachos-pr'])
this.location.back();
}
cancle() {