Skip to content

Commit

Permalink
Fixed #546. The default state should now be _browse_.
Browse files Browse the repository at this point in the history
  • Loading branch information
flekschas committed Jun 29, 2015
1 parent ac40d8b commit 36d4199
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions refinery/ui/src/js/node_mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ angular.module('refineryNodeMapping', [
$scope.getCurrentNodeSet();
})

.controller('DataSetUiModeCtrl', function($scope, $location, $rootScope) {
.controller('DataSetUiModeCtrl', function($scope, $location, $rootScope, $state, $timeout) {
$rootScope.mode = DATA_SET_UI_MODE_BROWSE;

$scope.$onRootScope('workflowChangedEvent', function( event, currentWorkflow ) {
Expand All @@ -567,7 +567,9 @@ angular.module('refineryNodeMapping', [
});

// Go to default state
$state.go('browse');
$timeout(function () {
$state.go('browse');
}, 0);
})

.factory("NodeSetList", function($resource) {
Expand Down

0 comments on commit 36d4199

Please sign in to comment.