admin: Add a route and a button to sync the filesystem

This commit is contained in:
nemunaire 2021-11-13 11:06:24 +01:00
commit 038abe450d
4 changed files with 27 additions and 6 deletions

View file

@ -241,7 +241,7 @@
<div class="card-body">
<dl class="row">
<dt class="col-3">Synchronisation</dt>
<dd class="col" ng-bind="configro.sync"></dd>
<dd class="col" title="{{ configro['sync-type'] }}" ng-bind="configro.sync"></dd>
</dl>
<div class="float-right" ng-if="configro.sync">
@ -251,6 +251,7 @@
Dernier import&nbsp;: {{ syncReport._date[1] }}
</div>
<div class="text-left" ng-if="configro.sync">
<button ng-if="configro['sync-type'] === 'GitImporter'" type="button" class="btn btn-info" ng-click="baseSync()" ng-disabled="deepSyncInProgress"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Pull</button>
<div class="btn-group">
<button type="button" class="btn btn-secondary" ng-click="deepSync()" ng-disabled="deepSyncInProgress"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Synchronisation intégrale</button>
<button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-disabled="deepSyncInProgress">