Fixes wording/mapping of noty nameing.
This commit is contained in:
parent
56eb2c19dd
commit
08d3d907f4
2 changed files with 4 additions and 2 deletions
|
@ -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.',
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue