Estonia 's previous prime minister , Juhan Parts , resigned last month after lawmakers voted no-confidence in his justice minister .