I am using Ionic Framework and I create a new directive to IonButton component, it actually disables the button and then enable it back when a process is completed (lets say