mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 22:52:16 +08:00
🎨 Improve import data notification
This commit is contained in:
parent
5b97386d85
commit
a2138b989c
@ -33,6 +33,9 @@ func importSY(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(200, ret)
|
||||
|
||||
util.PushEndlessProgress(model.Conf.Language(73))
|
||||
defer util.ClearPushProgress(100)
|
||||
|
||||
form, err := c.MultipartForm()
|
||||
if nil != err {
|
||||
logging.LogErrorf("parse import .sy.zip failed: %s", err)
|
||||
@ -97,6 +100,9 @@ func importData(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
util.PushEndlessProgress(model.Conf.Language(73))
|
||||
defer util.ClearPushProgress(100)
|
||||
|
||||
form, err := c.MultipartForm()
|
||||
if nil != err {
|
||||
logging.LogErrorf("import data failed: %s", err)
|
||||
|
Loading…
Reference in New Issue
Block a user