Skip to content

Commit

Permalink
fix #204: delete setting at system level
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Sep 16, 2016
1 parent 510069f commit 52ac947
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
updateCategoryConfig: function(categoryId, eventId, settings) {
return $http.post('/admin/api/configuration/events/'+eventId+'/categories/'+categoryId+'/update', settings).error(HttpErrorHandler.handle);
},
remove: function(conf) {
removeSystemConfig: function(conf) {
return $http['delete']('/admin/api/configuration/key/' + conf.configurationKey).error(HttpErrorHandler.handle);
},
removeOrganizationConfig: function(conf, organizationId) {
Expand Down Expand Up @@ -179,7 +179,7 @@
};

systemConf.delete = function(config) {
return ConfigurationService.remove(config);
return ConfigurationService.removeSystemConfig(config);
};

$rootScope.$on('ReloadSettings', function() {
Expand All @@ -192,9 +192,6 @@
function OrganizationConfigurationController(ConfigurationService, OrganizationService, $stateParams, $q, $rootScope) {
var organizationConf = this;
organizationConf.organizationId = $stateParams.organizationId;
organizationConf.delete = function(config) {
return ConfigurationService.removeOrganizationConfig(config, organizationConf.organizationId);
};
var load = function() {
organizationConf.loading = true;
$q.all([OrganizationService.getOrganization(organizationConf.organizationId), ConfigurationService.loadOrganizationConfig(organizationConf.organizationId)])
Expand Down

0 comments on commit 52ac947

Please sign in to comment.