Merge pull request #9932 from colinux/lock-submit-fork

Correctif: ETQ usager, je ne peux pas soumettre 2x mes modifications en parallèle
This commit is contained in:
Colin Darie 2024-01-25 11:37:56 +00:00 committed by GitHub
commit 50b9813b4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 81 additions and 1 deletions

View file

@ -2,6 +2,7 @@ module Users
class DossiersController < UserController
include DossierHelper
include TurboChampsConcern
include LockableConcern
layout 'procedure_context', only: [:identite, :update_identite, :siret, :update_siret]
@ -19,6 +20,10 @@ module Users
before_action :show_demarche_en_test_banner
before_action :store_user_location!, only: :new
around_action only: :submit_en_construction do |_controller, action|
lock_action("lock-submit-en-construction-#{@dossier.id}", &action)
end
def index
ordered_dossiers = Dossier.includes(:procedure).order_by_updated_at
deleted_dossiers = current_user.deleted_dossiers.includes(:procedure).order_by_updated_at