bug(back button): back button now is disabled when invalid
This commit is contained in:

committed by
Brandon Philips

parent
59b2eb4618
commit
56bbab74ca
@ -44,7 +44,7 @@ angular.module('etcdBrowser', ['ngRoute', 'etcd', 'timeRelative'])
|
||||
localStorage.setItem('etcdPath', $scope.etcdPath);
|
||||
$scope.enableBack = true;
|
||||
//disable back button if at root (/v1/keys/)
|
||||
if($scope.etcdPath === '') {
|
||||
if($scope.etcdPath === '/v1/keys') {
|
||||
$scope.enableBack = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user