forked from Archives/Athou_commafeed
open settings and profile on the feeds page
This commit is contained in:
@@ -410,10 +410,10 @@ function($scope, $http, $state, $stateParams, $route, $location,
|
||||
$location.path('admin');
|
||||
};
|
||||
$scope.toSettings = function() {
|
||||
$location.path('settings');
|
||||
$state.transitionTo('feeds.settings');
|
||||
};
|
||||
$scope.toProfile = function() {
|
||||
$location.path('profile');
|
||||
$state.transitionTo('feeds.profile');
|
||||
};
|
||||
$scope.toHelp = function() {
|
||||
$state.transitionTo('feeds.help');
|
||||
|
||||
@@ -39,6 +39,16 @@ app.config([ '$routeProvider', '$stateProvider', '$urlRouterProvider',
|
||||
templateUrl : 'templates/feeds.help.html',
|
||||
controller : trackCtrl
|
||||
});
|
||||
$stateProvider.state('feeds.settings', {
|
||||
url : '/settings',
|
||||
templateUrl : 'templates/settings.html',
|
||||
controller : 'SettingsCtrl'
|
||||
});
|
||||
$stateProvider.state('feeds.profile', {
|
||||
url : '/profile',
|
||||
templateUrl : 'templates/profile.html',
|
||||
controller : 'ProfileCtrl'
|
||||
});
|
||||
|
||||
$stateProvider.state('admin', {
|
||||
'abstract' : true,
|
||||
@@ -66,18 +76,6 @@ app.config([ '$routeProvider', '$stateProvider', '$urlRouterProvider',
|
||||
controller : 'ManageSettingsCtrl'
|
||||
});
|
||||
|
||||
$stateProvider.state('settings', {
|
||||
url : '/settings',
|
||||
templateUrl : 'templates/settings.html',
|
||||
controller : 'SettingsCtrl'
|
||||
});
|
||||
|
||||
$stateProvider.state('profile', {
|
||||
url : '/profile',
|
||||
templateUrl : 'templates/profile.html',
|
||||
controller : 'ProfileCtrl'
|
||||
});
|
||||
|
||||
$urlRouterProvider.when('/', '/feeds/view/category/all');
|
||||
$urlRouterProvider.when('/admin', '/admin/settings');
|
||||
$urlRouterProvider.otherwise('/');
|
||||
|
||||
Reference in New Issue
Block a user