Compare commits

..

No commits in common. "8a6d77e9ccd8f67053134ef572d608edd0c3b452" and "0ab453811cafeae63bbed1bc1f8f6c6a61a393ad" have entirely different histories.

3 changed files with 2 additions and 4 deletions

View File

@ -284,12 +284,10 @@ 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()

View File

@ -22,7 +22,7 @@
<div class="badge badge-success align-self-center" ng-if="syncReport" title="{{ syncReport._updated[syncReport._updated.length-1] }}"> <div class="badge badge-success align-self-center" ng-if="syncReport" title="{{ syncReport._updated[syncReport._updated.length-1] }}">
Dernier import&nbsp;: {{ syncReport._updated[syncReport._updated.length-1] | date:"medium" }} Dernier import&nbsp;: {{ syncReport._updated[syncReport._updated.length-1] | date:"medium" }}
</div> </div>
<a ng-if="syncStatus['sync-type'] === 'GitImporter'" href="repositories" class="btn btn-secondary"> <a ng-if="configro['sync-type'] === 'GitImporter'" href="repositories" class="btn btn-secondary">
Voir les dépôts Voir les dépôts
</a> </a>
</div> </div>

View File

@ -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(".xml") || 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(".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>