diff --git a/admin/api/settings.go b/admin/api/settings.go index e5dd9bca..4213d37a 100644 --- a/admin/api/settings.go +++ b/admin/api/settings.go @@ -157,7 +157,7 @@ func saveChallengeInfo(c *gin.Context) { // Ignore the error, try to continue } - err = sync.ImportChallengeInfo(info) + err = sync.ImportChallengeInfo(info, DashboardDir) if err != nil { log.Println("Unable to ImportChallengeInfo:", err.Error()) c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"errmsg": fmt.Sprintf("Something goes wrong when trying to import related files: %s", err.Error())}) diff --git a/admin/static/views/settings.html b/admin/static/views/settings.html index c3b2e363..ca51cae1 100644 --- a/admin/static/views/settings.html +++ b/admin/static/views/settings.html @@ -350,6 +350,13 @@ +