summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/extension_modules_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/extension_modules_controller.rb b/app/controllers/extension_modules_controller.rb
index 3a155a1..3f8fe98 100644
--- a/app/controllers/extension_modules_controller.rb
+++ b/app/controllers/extension_modules_controller.rb
@@ -44,6 +44,14 @@ class ExtensionModulesController < ApplicationController
redirect_to phone_extension_modules_url(@phone), :notice => t('extension_modules.controller.successfuly_destroyed')
end
+ def restart
+ if @extension_module.resync
+ redirect_to phone_extension_module_path(@phone, @extension_module), :notice => t('extension_modules.controller.restart_invoked')
+ else
+ redirect_to phone_extension_module_path(@phone, @extension_module), :error => t('extension_modules.controller.restart_failed')
+ end
+ end
+
private
def spread_breadcrumbs
if @phone.phoneable.class == User