add market place

This commit is contained in:
Xuan Sang LE
2020-05-19 01:03:49 +02:00
parent d1e8fd91dc
commit ff6f480f08
14 changed files with 353 additions and 216 deletions

View File

@ -290,7 +290,7 @@ SelectionDialog.scheme = """
<afx-hbox data-height="30">
<div />
<afx-button data-id = "btnOk" text = "__(Ok)" data-width = "40" />
<afx-button data-id = "btnCancel" text = "__(Cancels)" data-width = "50" />
<afx-button data-id = "btnCancel" text = "__(Cancel)" data-width = "50" />
</afx-hbox>
</afx-vbox>
<div data-width = "10" />

View File

@ -208,14 +208,14 @@ Ant.OS.API =
r.responseType = "arraybuffer"
r.onload = (e) ->
if @status is 200 and @readyState is 4
resolve @response
Ant.OS.API.loaded q, p, "OK"
resolve @response
else
reject e, @
Ant.OS.API.loaded q, p, "FAIL"
reject Ant.OS.API.throwe __("Unable to get blob: {0}", p)
Ant.OS.API.loading q, p
r.send()
upload: (p, d) ->
new Promise (resolve, reject) ->
q = Ant.OS.announcer.getMID()