mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-26 18:59:45 +02:00
fix system loading handle
This commit is contained in:
@ -32,9 +32,11 @@ class PushNotification extends this.OS.GUI.BaseService
|
||||
if b and @iconclass is "fa fa-bars"
|
||||
@iconclass = "fa fa-spinner fa-spin"
|
||||
@update()
|
||||
$(@_gui.workspace).css "cursor", "wait"
|
||||
else if not b and @iconclass is "fa fa-spinner fa-spin"
|
||||
@iconclass = "fa fa-bars"
|
||||
@update()
|
||||
$(@_gui.workspace).css "cursor", "auto"
|
||||
|
||||
main: ->
|
||||
@mlist = @find "notifylist"
|
||||
@ -51,14 +53,12 @@ class PushNotification extends this.OS.GUI.BaseService
|
||||
|
||||
@subscribe "loading", (o) =>
|
||||
@pending.push o.id
|
||||
$(@_gui.workspace).css "cursor", "wait"
|
||||
@spin true
|
||||
|
||||
@subscribe "loaded", (o) =>
|
||||
i = @pending.indexOf o.id
|
||||
@pending.splice i, 1 if i >= 0
|
||||
@spin false if @pending.length is 0
|
||||
$(@_gui.workspace).css "cursor", "auto"
|
||||
|
||||
@nzone.set "height", "100%"
|
||||
@fzone.set "height", "100%"
|
||||
|
@ -1,6 +1,6 @@
|
||||
Ant = this
|
||||
|
||||
class BugListItemTag extends Ant.OS.GUI.tag["afx-list-item-proto"]
|
||||
class BugListItemTag extends this.OS.GUI.tag["afx-list-item-proto"]
|
||||
constructor: (r, o) ->
|
||||
super r, o
|
||||
|
||||
@ -25,7 +25,7 @@ class BugListItemTag extends Ant.OS.GUI.tag["afx-list-item-proto"]
|
||||
] }
|
||||
|
||||
|
||||
Ant.OS.GUI.define "afx-bug-list-item", BugListItemTag
|
||||
this.OS.GUI.define "afx-bug-list-item", BugListItemTag
|
||||
|
||||
class Syslog extends this.OS.GUI.BaseApplication
|
||||
constructor: (args) ->
|
||||
|
Reference in New Issue
Block a user