Commit 554f4684 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Pin flash message to top if award note is invalid

parent 70a076c0
...@@ -113,7 +113,9 @@ class @Notes ...@@ -113,7 +113,9 @@ class @Notes
renderNote: (note) -> renderNote: (note) ->
unless note.valid unless note.valid
if note.award if note.award
new Flash('You have already used this award emoji !', 'alert') flash = new Flash('You have already used this award emoji !', 'alert')
flash.pinToTop()
flash.raise()
return return
# render note if it not present in loaded list # render note if it not present in loaded list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment