mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Hide Back button when there is no history on first load.
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
module.exports =
|
||||
function DocsCtrl($rootScope, $scope, $window, $location) {
|
||||
|
||||
function hasHistory() {
|
||||
// TODO: watch this
|
||||
return $window.history.length > 1
|
||||
}
|
||||
|
||||
$scope.hasHistory = hasHistory()
|
||||
|
||||
$scope.goBack = function () {
|
||||
$window.history.back()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user