Remove useless console.log
Hiding of buttons is managed outside of directive