Compare commits
2 Commits
a14c151b04
...
8a6d77e9cc
Author | SHA1 | Date | |
---|---|---|---|
8a6d77e9cc | |||
e7b39b0d92 |
@ -284,10 +284,12 @@ func autoSync(c *gin.Context) {
|
|||||||
|
|
||||||
if !IsProductionEnv {
|
if !IsProductionEnv {
|
||||||
if err := sync.GlobalImporter.Sync(); err != nil {
|
if err := sync.GlobalImporter.Sync(); err != nil {
|
||||||
|
lastSyncError = err.Error()
|
||||||
log.Println("Unable to sync.GI.Sync:", err.Error())
|
log.Println("Unable to sync.GI.Sync:", err.Error())
|
||||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Unable to perform the pull."})
|
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Unable to perform the pull."})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
lastSyncError = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
themes, err := fic.GetThemes()
|
themes, err := fic.GetThemes()
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</CardBody>
|
</CardBody>
|
||||||
<ListGroup flush class="border-secondary">
|
<ListGroup flush class="border-secondary">
|
||||||
{#each files as file, index}
|
{#each files as file, index}
|
||||||
<ListGroupItem tag="a" href={file.path} target={(file.name.endsWith(".txt") || file.name.endsWith(".jpg") || file.name.endsWith(".png") || file.name.endsWith(".pdf"))?"_blank":"_self"} class="d-flex">
|
<ListGroupItem tag="a" href={file.path} target={(file.name.endsWith(".txt") || file.name.endsWith(".xml") || file.name.endsWith(".jpg") || file.name.endsWith(".png") || file.name.endsWith(".pdf"))?"_blank":"_self"} class="d-flex">
|
||||||
<h1 class="me-3">
|
<h1 class="me-3">
|
||||||
<Icon name="arrow-down-circle" />
|
<Icon name="arrow-down-circle" />
|
||||||
</h1>
|
</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user