mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-26 18:59:45 +02:00
add wait cursor when system is loading
This commit is contained in:
@ -51,12 +51,14 @@ 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%"
|
||||
|
Reference in New Issue
Block a user