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
renderNote: (note) ->
unless note.valid
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
# 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