mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 00:11:22 +08:00
Merge pull request #2294 from aignatov-bio/ai-sci-4124-fix-flash-message
Fix flash message for datetime column [SCI-4124]
This commit is contained in:
commit
6f78901d4e
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ module RepositoryColumns
|
||||||
params: repository_column_params)
|
params: repository_column_params)
|
||||||
|
|
||||||
if service.succeed?
|
if service.succeed?
|
||||||
render json: service.column, status: :created
|
render json: service.column, status: :created, creating: true
|
||||||
else
|
else
|
||||||
render json: service.errors, status: :unprocessable_entity
|
render json: service.errors, status: :unprocessable_entity
|
||||||
end
|
end
|
||||||
|
|
@ -28,7 +28,7 @@ module RepositoryColumns
|
||||||
params: repository_column_params)
|
params: repository_column_params)
|
||||||
|
|
||||||
if service.succeed?
|
if service.succeed?
|
||||||
render json: service.column, status: :ok
|
render json: service.column, status: :ok, editing: true
|
||||||
else
|
else
|
||||||
render json: service.errors, status: :unprocessable_entity
|
render json: service.errors, status: :unprocessable_entity
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue