Merge branch 'fix-password' into 'dev'

Fix password

See merge request framasoft/framadate/funky-framadate-front!25
This commit is contained in:
ty kayn 2020-01-16 13:28:12 +01:00
commit ce4c3cb000
4 changed files with 1 additions and 9 deletions

View File

@ -30,11 +30,9 @@ export class AppComponent {
detectCurrentTabOnRouteChange() {
this.route.events.subscribe((event: any) => {
// console.log('event', event);
if (event.url) {
const tab = event.url.split('/');
console.log(tab);
if (tab && tab[2]) {
this.step = tab[2];
} else {

View File

@ -54,7 +54,6 @@ export class AnswersComponent extends BaseComponent implements OnInit, AfterView
}
navigateOrDelete(event: KeyboardEvent, i) {
console.log('event', event);
if (event.ctrlKey && event.key == "d") {
this.config.answers.splice(i, 1)
}

View File

@ -128,8 +128,7 @@
{{"visibility.access_protect"|translate}}
</label>
<div class="enablepassword" *ngIf="config.passwordAccess">
<div class="enablepassword" *ngIf="config.passwordAccess == '1'">
<input type="password"
name="password"
id="password"

View File

@ -106,7 +106,6 @@ export class ConfigService extends PollConfig {
answers: this.answers,
}
};
console.log('jsonConfig', jsonConfig);
return jsonConfig
}
@ -164,7 +163,6 @@ export class ConfigService extends PollConfig {
.subscribe(res => {
// message: 'Trouvé! Allez voir votre boite email',
this.myPolls = res;
console.log('res', res);
this.loading = false;
this.messageService.add({
severity: 'success',
@ -253,11 +251,9 @@ export class ConfigService extends PollConfig {
* action of the form
*/
createPoll() {
console.log('sends the form');
// alert('envoi de formulaire pour création de sondage en XHR à faire');
this.http.get(`${this.baseHref}/`, this.makeHeaders())
.subscribe((res) => {
console.log('res', res);
this.createPollFromConfig(this.getPollConfig())
},
this.handleError