📖 clean console logs

This commit is contained in:
Baptiste Lemoine 2020-01-16 13:24:11 +01:00
parent d63f46483f
commit 7df60e5a51
3 changed files with 0 additions and 7 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

@ -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