Fautes orthographe + indentation

This commit is contained in:
HarmandI 2022-03-13 17:33:34 +01:00
parent bcc27e9250
commit 103294207a
4 changed files with 6 additions and 9 deletions

View file

@ -110,8 +110,6 @@ export class ToDoListComponent implements OnInit {
tache.editing = false; tache.editing = false;
} }
//supprimer la tache //supprimer la tache
deleteTache(id: number) { deleteTache(id: number) {
this.TodoService.deleteTacheById(id).subscribe((resp) => { this.TodoService.deleteTacheById(id).subscribe((resp) => {

View file

@ -2,7 +2,6 @@ import { Component, OnInit } from '@angular/core';
import { ToDoList } from 'src/app/models/to-do-list'; import { ToDoList } from 'src/app/models/to-do-list';
import { TodoService } from 'src/app/services/todo.service'; import { TodoService } from 'src/app/services/todo.service';
@Component({ @Component({
selector: 'app-page-to-do-list', selector: 'app-page-to-do-list',
templateUrl: './page-to-do-list.component.html', templateUrl: './page-to-do-list.component.html',

View file

@ -43,11 +43,11 @@ export class TodoService {
return this.http.put(`${this.apiUrl}/taches/update/1`, tache); return this.http.put(`${this.apiUrl}/taches/update/1`, tache);
} }
//ajoute ne todoList sur une team (par son id) via le token //ajoute une todoList sur une team (par son id) via le token
addTodoByTeamId(newtodoList: TodoList): Observable<any> { addTodoByTeamId(newtodoList: TodoList): Observable<any> {
const teamId = this.tokenService.getCurrentTeamId(); const teamId = this.tokenService.getCurrentTeamId();
console.log(newtodoList + 'newtodoList'); console.log(newtodoList);
return this.http.post(`${this.apiUrl}/todolist/add/${teamId}`, newtodoList); return this.http.post(`${this.apiUrl}/ad/todolistd/${teamId}`, newtodoList);
} }
//suprime une todoList en fonction de son id //suprime une todoList en fonction de son id