From babf24874420ef0fa87df8b41ba8227bdcade2e3 Mon Sep 17 00:00:00 2001 From: Raphael LACOTE Date: Sun, 19 Mar 2023 15:51:57 +0100 Subject: [PATCH] Resolution d'un premier bug sur le boutton edir --- src/view/team-add.js | 3 +-- src/view/team.js | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/view/team-add.js b/src/view/team-add.js index 0385cf7..bd18a09 100644 --- a/src/view/team-add.js +++ b/src/view/team-add.js @@ -67,8 +67,7 @@ export default {
{{ errorMessage }}

- - {{this.id}} +

diff --git a/src/view/team.js b/src/view/team.js index be3fa85..c9a4e8b 100644 --- a/src/view/team.js +++ b/src/view/team.js @@ -11,22 +11,19 @@ export default { }, methods: { recupTeam: function (team) { - console.log('team.addTeam', team); this.allTeam.push(team); }, editParam: function (team) { this.teamAEdit=team - console.log('lanceEdit') }, updateTeam: function (team) { - console.log('update') for (var i = 0; i < this.allTeam.length; i++) { if (this.allTeam[i].id == this.teamAEdit.id) { - console.log('update + +') this.allTeam[i].name = team.name this.allTeam[i].description=team.description } } + this.teamAEdit = null }