aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/stop_area_referentials_controller.rb5
-rw-r--r--app/views/stop_area_referentials/show.html.slim2
-rw-r--r--config/routes.rb1
3 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/stop_area_referentials_controller.rb b/app/controllers/stop_area_referentials_controller.rb
index f8c4d0d06..5c87be43d 100644
--- a/app/controllers/stop_area_referentials_controller.rb
+++ b/app/controllers/stop_area_referentials_controller.rb
@@ -11,11 +11,6 @@ class StopAreaReferentialsController < BreadcrumbController
redirect_to resource
end
- def cancel_sync
- resource.last_sync.destroy
- redirect_to resource
- end
-
protected
def begin_of_chain
current_organisation
diff --git a/app/views/stop_area_referentials/show.html.slim b/app/views/stop_area_referentials/show.html.slim
index 584f53410..9cceed5e5 100644
--- a/app/views/stop_area_referentials/show.html.slim
+++ b/app/views/stop_area_referentials/show.html.slim
@@ -28,5 +28,3 @@
- content_for :sidebar do
ul.actions
li = link_to t('stop_area_referentials.actions.sync'), sync_stop_area_referential_path(@stop_area_referential), class: 'sync', method: :post
- - if @stop_area_referential.last_sync
- li = link_to t('stop_area_referentials.actions.cancel_sync'), cancel_sync_stop_area_referential_path(@stop_area_referential), class: 'cancel_sync', method: :post
diff --git a/config/routes.rb b/config/routes.rb
index d60331a4f..196e73997 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -55,7 +55,6 @@ ChouetteIhm::Application.routes.draw do
resources :stop_area_referentials, :only => [:show] do
post :sync, on: :member
- post :cancel_sync, on: :member
resources :stop_areas
end