commit
c04b5da615
@ -110,8 +110,6 @@ export class ToDoListComponent implements OnInit {
|
||||
tache.editing = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//supprimer la tache
|
||||
deleteTache(id: number) {
|
||||
this.TodoService.deleteTacheById(id).subscribe((resp) => {
|
||||
|
@ -2,7 +2,6 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { ToDoList } from 'src/app/models/to-do-list';
|
||||
import { TodoService } from 'src/app/services/todo.service';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-to-do-list',
|
||||
templateUrl: './page-to-do-list.component.html',
|
||||
|
@ -43,10 +43,10 @@ export class TodoService {
|
||||
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> {
|
||||
const teamId = this.tokenService.getCurrentTeamId();
|
||||
console.log(newtodoList + 'newtodoList');
|
||||
console.log(newtodoList);
|
||||
return this.http.post(`${this.apiUrl}/todolist/add/${teamId}`, newtodoList);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user