Skip to content

Commit

Permalink
premiere piste pour le unFollow / #33
Browse files Browse the repository at this point in the history
  • Loading branch information
theomarie committed Apr 12, 2020
1 parent a32013b commit 703098f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/routes/developer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,19 @@ export default Route.extend({

break;
case false:


model.currentDeveloper.follow.forEach(DevFollow,index => {
if (DevFollow == developer.id) {
model.currentDeveloper.follow.splice(index,1)
model.currentDeveloper.save();
set('canFollow', 'true')
}
debugger
});
debugger

model.canFollow = true

set('canFollow', 'true')
break;

default:
Expand Down

0 comments on commit 703098f

Please sign in to comment.