Haopee, the decision to euthanize is never an easy one. I'm sorry your friend had to gone through this.
I've had to euthanize one dog. Our Collie was about 8 years old when she developed a respiratory disease known to Collies. It made her lungs produce too much mucus. It affected her sinuses the most. We had her sinuses operated on a couple of times but it didn't improve things. When she got bad and medication no longer helped her, we had to make the decision. It was not an easy one, let me tell you. But, our poor dog was miserable and suffering every day. One always thinks they could have done something more, but usually that is because it's so hard for us to let go.