minor fix

This commit is contained in:
Xuan Sang LE
2018-02-11 00:39:08 +01:00
parent 3ed28e4fc1
commit b3e90fbc15
3 changed files with 21 additions and 6 deletions

View File

@ -291,7 +291,6 @@ self.OS.GUI =
dataid: "sys-logout",
iconclass: "fa fa-user-times"
menu.onmenuselect = (d) ->
console.log d
return _API.handler.logout() if d.item.data.dataid is "sys-logout"
_GUI.launch d.item.data.app unless d.item.data.dataid

View File

@ -80,4 +80,4 @@ self.OS.API.handler =
dbquery: (cmd,d, c) ->
path = "#{_REST}/db/#{cmd}"
_API.post path, d, c, (e, s) ->
_courrier.osfail "Fail to query data from database: #{p}", e, s
_courrier.osfail "Fail to query data from database: #{path}", e, s