mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
settings page and custom css for users
This commit is contained in:
@@ -342,4 +342,22 @@ module.controller('ManageUserCtrl', function($scope, $state, $stateParams,
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
module.controller('SettingsCtrl', function($scope, $location, SettingsService) {
|
||||
$scope.settingsService = SettingsService;
|
||||
$scope.codeMirrorConfig = {
|
||||
mode : 'css',
|
||||
lineNumbers : true
|
||||
};
|
||||
$scope.cancel = function() {
|
||||
SettingsService.init(function() {
|
||||
$location.path('/');
|
||||
});
|
||||
};
|
||||
$scope.save = function() {
|
||||
SettingsService.save(function() {
|
||||
$location.path('/');
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user