Add device service migrate, use back-button
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="back-button mb-2">
|
||||
<div *ngIf="show()" class="back-button mb-2">
|
||||
<i class="fal fa-arrow-left"></i> <span i18n="@FmBackButton">Back</span>
|
||||
</div>
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import {Component, HostListener} from '@angular/core';
|
||||
import {Location} from "@angular/common";
|
||||
import { DeviceService} from '../../services/device.service';
|
||||
|
||||
@Component({
|
||||
selector: 'fm-back-button',
|
||||
@@ -13,6 +14,10 @@ export class BackButtonComponent {
|
||||
this.location.back();
|
||||
}
|
||||
|
||||
constructor(private location: Location) { }
|
||||
constructor(private location: Location,private deviceService:DeviceService) { }
|
||||
|
||||
public show() {
|
||||
return !this.deviceService.IsMobile();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user