mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-19 14:01:03 +08:00
Refresh canvas navigator after moved tasks [SCI-7661] (#4774)
This commit is contained in:
parent
92e044dfd3
commit
83ba9d40dc
1 changed files with 2 additions and 0 deletions
|
@ -333,6 +333,8 @@ class ExperimentsController < ApplicationController
|
||||||
modules_to_move[id] = dst_experiment.id
|
modules_to_move[id] = dst_experiment.id
|
||||||
end
|
end
|
||||||
@experiment.move_modules(modules_to_move, current_user)
|
@experiment.move_modules(modules_to_move, current_user)
|
||||||
|
@experiment.workflowimg.purge
|
||||||
|
|
||||||
render json: { message: t('experiments.table.modal_move_modules.success_flash',
|
render json: { message: t('experiments.table.modal_move_modules.success_flash',
|
||||||
experiment: sanitize_input(dst_experiment.name)) }
|
experiment: sanitize_input(dst_experiment.name)) }
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
|
|
Loading…
Reference in a new issue