diff --git a/app/assets/javascripts/app/controllers/login.js.coffee b/app/assets/javascripts/app/controllers/login.js.coffee index 2e5417427..ab2bceeeb 100644 --- a/app/assets/javascripts/app/controllers/login.js.coffee +++ b/app/assets/javascripts/app/controllers/login.js.coffee @@ -114,7 +114,7 @@ class Index extends App.Controller # add notify Spine.trigger 'notify:removeall' Spine.trigger 'notify', { - type: 'warning', + type: 'error', msg: 'Wrong Username and Password combination.', } diff --git a/app/assets/javascripts/app/controllers/notify.js.coffee b/app/assets/javascripts/app/controllers/notify.js.coffee index ed0d60a86..172b10be0 100644 --- a/app/assets/javascripts/app/controllers/notify.js.coffee +++ b/app/assets/javascripts/app/controllers/notify.js.coffee @@ -20,9 +20,11 @@ class App.Notify extends Spine.Controller # notify = App.view('notify')(data: data) # @append( notify ) - # match noty naming + # map noty naming if data['type'] is 'info' data['type'] = 'information' + if data['type'] is 'warning' + data['type'] = 'alert' $.noty.closeAll() $('#notify').noty(