admin: Add button to switch from WIP to PROD
This commit is contained in:
parent
c34fe51641
commit
c7968fb256
3 changed files with 29 additions and 4 deletions
|
@ -359,6 +359,7 @@
|
|||
<div>
|
||||
<div class="d-flex flex-column">
|
||||
<button ng-click="regenerate()" class="btn btn-info my-1" type="button"><span class="glyphicon glyphicon-share" aria-hidden="true"></span> Regénérer les fichiers statiques</button>
|
||||
<button ng-if="settings.wip" ng-click="switchToProd()" class="btn btn-danger my-1" type="button"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Activer le mode challenge</button>
|
||||
</div>
|
||||
<hr>
|
||||
<h4>Changements anticipés</h4>
|
||||
|
@ -402,7 +403,7 @@
|
|||
|
||||
<div class="row mb-2" ng-show="settings.wip || !timeProgression || displayDangerousActions">
|
||||
<div class="d-flex flex-column">
|
||||
<a href="sync" class="btn btn-secondary my-1" type="button"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Paramètres de synchronisation</a>
|
||||
<a href="sync" class="btn btn-primary my-1" type="button"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Paramètres de synchronisation</a>
|
||||
<button ng-click="reset('settings');" class="btn btn-secondary mt-2 mb-1" type="button"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Revenir aux paramètres par défaut</button>
|
||||
<button ng-click="reset('challenges')" class="btn btn-secondary mt-2 mb-1" type="button"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Effacer les challenges et les thèmes</button>
|
||||
<button ng-click="reset('teams');" class="btn btn-secondary mt-1 mb-1" type="button"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Effacer les équipes</button>
|
||||
|
|
Reference in a new issue