Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gy4443
chemotion_eln_server
Commits
228c85f7
Commit
228c85f7
authored
Oct 15, 2015
by
Florian Hübsch
Browse files
Remove ap output from ReactionAPI.
parent
46f8dc81
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/api/chemotion/reaction_api.rb
View file @
228c85f7
...
...
@@ -137,19 +137,8 @@ module Chemotion
requires
:materials
,
type:
Hash
end
# before do
# error!('401 Unauthorized', 401) unless ElementPolicy.new(@current_user, Reaction).create?
# end
post
do
ap
params
attributes
=
declared
(
params
,
include_missing:
false
).
symbolize_keys
ap
attributes
materials
=
attributes
.
delete
(
:materials
)
collection_id
=
attributes
.
delete
(
:collection_id
)
...
...
app/assets/javascripts/components/stores/UIStore.js
View file @
228c85f7
...
...
@@ -126,7 +126,6 @@ class UIStore {
let
state
=
this
.
state
;
let
hasChanged
=
(
!
state
.
currentCollection
||
state
.
currentCollection
.
id
!=
collection
.
id
)
||
(
state
.
currentSearchSelection
!=
null
);
// TODO state.pagination does not make sense
if
(
hasChanged
)
{
this
.
state
.
currentCollection
=
collection
;
this
.
state
.
currentCollectionId
=
collection
.
id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment