🎨 Improve import data notification
This commit is contained in:
parent
5b97386d85
commit
a2138b989c
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue