config to hide demo headers on homepage

This commit is contained in:
Tykayn 2022-08-23 14:19:06 +02:00 committed by tykayn
parent 23df4a5899
commit 4170c65e17
6 changed files with 11 additions and 20 deletions

View File

@ -2,6 +2,9 @@
"name": "framadate-funky-frontend", "name": "framadate-funky-frontend",
"version": "0.6.0", "version": "0.6.0",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"engines": {
"node": ">= 16.0.0"
},
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",

View File

@ -35,7 +35,10 @@
/> />
</div> </div>
</div> </div>
<fieldset class="well debug has-background-info-light padded is-rounded"> <fieldset
class="well debug has-background-info-light padded is-rounded"
*ngIf="environment.show_graphic_chart"
>
<section class="buttons-demo"> <section class="buttons-demo">
<h1 class="title is-1">Boutons de démo - Titre h1</h1> <h1 class="title is-1">Boutons de démo - Titre h1</h1>
<h2 class="title is-2">Titre h2</h2> <h2 class="title is-2">Titre h2</h2>
@ -74,24 +77,6 @@
</div> </div>
</section> </section>
</fieldset> </fieldset>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div> </div>
</div> </div>

View File

@ -21,6 +21,7 @@ export class AdminConsultationComponent implements OnInit {
private _Activatedroute: ActivatedRoute, private _Activatedroute: ActivatedRoute,
private router: Router private router: Router
) { ) {
// http://localhost:4200/#/administration/key/7106Y3a5yfX10Z400fR670I1Bld0R4df7bEZ5fY6bOw5010t7XC36d4H16L2157jK4gb7JS311J735
this.poll = this.pollService._poll.getValue(); this.poll = this.pollService._poll.getValue();
this.form = this.pollService.form; this.form = this.pollService.form;
} }

View File

@ -48,7 +48,7 @@
{{ 'participation.fav_title' | translate }} {{ 'participation.fav_title' | translate }}
</button> </button>
<button <button
class="edit-poll-button button is-default" class="edit-poll-button button is-secondary"
routerLink="/administration/step/7" routerLink="/administration/step/7"
*ngIf="poll.admin_key || show_admin_stuff" *ngIf="poll.admin_key || show_admin_stuff"
> >

View File

@ -45,6 +45,7 @@ export const environment = {
production: true, production: true,
showDemoWarning: false, showDemoWarning: false,
showStepperShortcuts: false, showStepperShortcuts: false,
show_graphic_chart: false,
api: { api: {
versionToUse: 'apiV1', versionToUse: 'apiV1',

View File

@ -60,6 +60,7 @@ export const environment = {
display_date_end_of_poll: false, display_date_end_of_poll: false,
display_wip: false, display_wip: false,
show_bottom_sources: false, show_bottom_sources: false,
show_graphic_chart: false,
}; };
// Included with Angular CLI. // Included with Angular CLI.