mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
📖 clean console logs
This commit is contained in:
parent
d63f46483f
commit
7df60e5a51
@ -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 {
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user